Merge branch 'master' of github.com:beyondcode/laravel-websockets

This commit is contained in:
Marcel Pociot 2018-11-27 21:41:20 +01:00
commit 95120b3830
1 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,10 @@ class ChannelManager
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])