Method |
Description |
|
onClose ( integer $clientId, integer $code, string $reason ) |
Invoked when the close handshake completes |
|
onData ( integer $clientId, Websocket\Message $msg ) |
Invoked when data messages arrive from the client |
|
onHandshake ( aerys\Request $request, aerys\Response $response ) |
Respond to websocket handshake requests |
|
onOpen ( integer $clientId, mixed $handshakeData ) |
Invoked when the full two-way websocket upgrade completes |
|
onStart ( Aerys\Websocket\Endpoint $endpoint ) |
Invoked when starting the server |
|
onStop ( ) |
Invoked when the server is stopping |
|