Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Nov 20, 2023
1 parent 5bdae3d commit 5a503bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Channels/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,13 @@ public function subscribed(Connection $connection): bool
public function broadcast(Application $app, array $payload, Connection $except = null): void
{
dump($except ? $except->identifier() : 'No ID');
dump($this->name());
dump(count($this->connections()));
collect($this->connections())
->each(function ($connection) use ($payload, $except) {
dump($connection->connection()->identifier());
if ($except && $except->identifier() === $connection->connection()->identifier()) {
dump('Returning early');
return;
}

Expand Down

0 comments on commit 5a503bb

Please sign in to comment.