diff --git a/src/SDK.php b/src/SDK.php index a2fbdb38..88bd350c 100644 --- a/src/SDK.php +++ b/src/SDK.php @@ -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())) {