Kraken\Network\Socket\SocketServer::handleData PHP Method

handleData() public method

Handler triggered when a new data is received from existing connection.
public handleData ( Kraken\Ipc\Socket\SocketInterface $socket, mixed $data )
$socket Kraken\Ipc\Socket\SocketInterface
$data mixed
    public function handleData($socket, $data)
    {
        try {
            $this->component->handleMessage($socket->conn, new NetworkMessage($data));
        } catch (Error $ex) {
            $this->handleError($socket, $ex);
        } catch (Exception $ex) {
            $this->handleError($socket, $ex);
        }
    }