Skip to content

Commit

Permalink
misc: show deprecated warning for pubnub subcription (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
embbnux authored May 31, 2023
1 parent 37a0cd4 commit 3e47c19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SDK.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ public function platform()
public function createSubscription(string $type = 'WebSocket')
{
if ($type == 'Pubnub') {
trigger_error(
'PubNub support is deprecated. Please migrate your application to WebSockets.',
E_USER_DEPRECATED
);
return new PubnubSubscription($this->_platform);
}
if (empty($this->websocket())) {
Expand Down

0 comments on commit 3e47c19

Please sign in to comment.