diff --git a/src/Websocket/Handler.php b/src/Websocket/Handler.php index 33cea99..c0765b0 100644 --- a/src/Websocket/Handler.php +++ b/src/Websocket/Handler.php @@ -111,7 +111,7 @@ class Handler implements MessageComponentInterface $channel = $this->handleChannelSubscriptions($message, $connection); - if (! $channel->hasConnection($connection) && !( + if (! optional($channel)->hasConnection($connection) && !( $message['event'] !== 'pusher:unsubscribe' && $message['event'] !== 'pusher.unsubscribe' )) {