Skip to content

Commit 66acf36

Browse files
committed
revert
1 parent a167974 commit 66acf36

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/Managers/ChannelManager.php

+1-9
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ public function unsubscribe(Channel $channel, Connection $connection): void
5656
unset($this->connections[$this->application->id()][$channel->name()][$connection->id()]);
5757
}
5858

59-
/**
60-
* Unsubscribe from a channel.
61-
*/
62-
public function unsub(string $channel, Connection $connection): void
63-
{
64-
unset($this->connections[$this->application->id()][$channel][$connection->id()]);
65-
}
66-
6759
/**
6860
* Get all the channels.
6961
*/
@@ -80,7 +72,7 @@ public function all(): Collection
8072
public function unsubscribeFromAll(Connection $connection): void
8173
{
8274
$this->channels()->each(function ($connections, $name) use ($connection) {
83-
$this->unsub($name, $connection);
75+
ChannelBroker::create($name)->unsubscribe($connection);
8476
});
8577
}
8678

0 commit comments

Comments
 (0)