Skip to content

Commit 3e47c19

Browse files
authored
misc: show deprecated warning for pubnub subcription (#123)
1 parent 37a0cd4 commit 3e47c19

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/SDK.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ public function platform()
7777
public function createSubscription(string $type = 'WebSocket')
7878
{
7979
if ($type == 'Pubnub') {
80+
trigger_error(
81+
'PubNub support is deprecated. Please migrate your application to WebSockets.',
82+
E_USER_DEPRECATED
83+
);
8084
return new PubnubSubscription($this->_platform);
8185
}
8286
if (empty($this->websocket())) {

0 commit comments

Comments
 (0)