Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 7bc6e32

Browse files
committed
wip
1 parent 8d7796e commit 7bc6e32

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/WebSockets/Channels/Channel.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ public function broadcast($payload)
8686
}
8787
}
8888

89+
public function broadcastToOthers(ConnectionInterface $connection, $payload)
90+
{
91+
$this->broadcastToEveryoneExcept($payload, $connection->socketId);
92+
}
93+
8994
public function broadcastToEveryoneExcept($payload, ?string $socketId = null)
9095
{
9196
if (is_null($socketId)) {
@@ -99,11 +104,6 @@ public function broadcastToEveryoneExcept($payload, ?string $socketId = null)
99104
}
100105
}
101106

102-
public function broadcastToOthers(ConnectionInterface $connection, $payload)
103-
{
104-
$this->broadcastToEveryoneExcept($payload, $connection->socketId);
105-
}
106-
107107
public function toArray(): array
108108
{
109109
return [

0 commit comments

Comments
 (0)