Method |
Description |
|
handleConnect ( Kraken\Network\NetworkConnectionInterface $conn ) |
When a new connection is opened it will be passed to this method. |
|
handleDisconnect ( Kraken\Network\NetworkConnectionInterface $conn ) |
This is called before or after a socket is closed |
|
handleError ( Kraken\Network\NetworkConnectionInterface $conn, Erro\Error | Exceptio\Exception $ex ) |
If there is an error with one of the sockets, or somewhere in the application where an Exception is thrown, the
Exception is sent back down the stack, handled by the Server and bubbled back up the application through this
method. |
|
handleMessage ( Kraken\Network\NetworkConnectionInterface $conn, Kraken\Network\NetworkMessageInterface $message ) |
Triggered when a client sends data through the socket. |
|