wip
This commit is contained in:
parent
8d7796eb60
commit
7bc6e32a76
|
|
@ -86,6 +86,11 @@ class Channel
|
|||
}
|
||||
}
|
||||
|
||||
public function broadcastToOthers(ConnectionInterface $connection, $payload)
|
||||
{
|
||||
$this->broadcastToEveryoneExcept($payload, $connection->socketId);
|
||||
}
|
||||
|
||||
public function broadcastToEveryoneExcept($payload, ?string $socketId = null)
|
||||
{
|
||||
if (is_null($socketId)) {
|
||||
|
|
@ -99,11 +104,6 @@ class Channel
|
|||
}
|
||||
}
|
||||
|
||||
public function broadcastToOthers(ConnectionInterface $connection, $payload)
|
||||
{
|
||||
$this->broadcastToEveryoneExcept($payload, $connection->socketId);
|
||||
}
|
||||
|
||||
public function toArray(): array
|
||||
{
|
||||
return [
|
||||
|
|
|
|||
Loading…
Reference in New Issue