Aerys\Websocket::onData PHP Method

onData() public method

Invoked when data messages arrive from the client
public onData ( integer $clientId, Websocket\Message $msg )
$clientId integer A unique (to the current process) identifier for this client
$msg Websocket\Message A stream of data received from the client
    public function onData(int $clientId, Websocket\Message $msg);