Aerys\Websocket::onOpen PHP Method

onOpen() public method

Invoked when the full two-way websocket upgrade completes
public onOpen ( integer $clientId, mixed $handshakeData )
$clientId integer A unique (to the current process) identifier for this client
$handshakeData mixed The return value from onHandshake() for this client
    public function onOpen(int $clientId, $handshakeData);