$users
$users : array<mixed,\User>
$users : array<mixed,\User>
onMessageRecieved(\PHP\WebSocket\SocketServer $server, \PHP\WebSocket\SocketClient $sender, string $message)
Called when a client sends a message to the server.
\PHP\WebSocket\SocketServer | $server | The server instance |
\PHP\WebSocket\SocketClient | $sender | |
string | $message | Sent message |
onClientConnected(\PHP\WebSocket\SocketServer $server, \PHP\WebSocket\SocketClient $client)
Called when a new client connects to the server.
\PHP\WebSocket\SocketServer | $server | The server instance |
\PHP\WebSocket\SocketClient | $client | Client that connected |
onClientDisconnected(\PHP\WebSocket\SocketServer $server, \PHP\WebSocket\SocketClient $client)
Called when a client disconnects from the server.
\PHP\WebSocket\SocketServer | $server | The server instance |
\PHP\WebSocket\SocketClient | $client | Client that disconnected |
onLogMessage(\PHP\WebSocket\SocketServer $server, string $message)
Called when the server generates a log message.
\PHP\WebSocket\SocketServer | $server | The server |
string | $message | Log message |