Merge branch 'master' of github.com:beyondcode/laravel-websockets
This commit is contained in:
commit
95120b3830
|
|
@ -47,6 +47,10 @@ class ChannelManager
|
||||||
|
|
||||||
public function removeFromAllChannels(ConnectionInterface $connection)
|
public function removeFromAllChannels(ConnectionInterface $connection)
|
||||||
{
|
{
|
||||||
|
if (! isset($connection->client)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
collect($this->channels[$connection->client->appId])->each->unsubscribe($connection);
|
collect($this->channels[$connection->client->appId])->each->unsubscribe($connection);
|
||||||
|
|
||||||
collect($this->channels[$connection->client->appId])
|
collect($this->channels[$connection->client->appId])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue