$appNames
$appNames : array<mixed,string>
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 |
on( $name, $handler) : \WsAppHandler
+ message(PHP\WebSocket\SocketServer, PHP\WebSocket\SocketClient, $message) + connect(PHP\WebSocket\SocketServer, PHP\WebSocket\SocketClient) + disconnect(PHP\WebSocket\SocketServer, PHP\WebSocket\SocketClient) + log(PHP\WebSocket\SocketServer, $message)
$name | ||
$handler |