|
@@ -41,6 +41,10 @@ class WebSocketServer extends Command
|
|
|
{
|
|
|
$this->server->clients->attach($conn);
|
|
|
echo "New connection! ({$conn->resourceId})\n";
|
|
|
+
|
|
|
+ foreach ($this->server->clients as $client) {
|
|
|
+ $client->send('1');
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public function onMessage(ConnectionInterface $from, $msg)
|