Aerys\Websocket::onClose PHP Method

onClose() public method

Invoked when the close handshake completes
public onClose ( integer $clientId, integer $code, string $reason )
$clientId integer A unique (to the current process) identifier for this client
$code integer The websocket code describing the close
$reason string The reason for the close (may be empty)
    public function onClose(int $clientId, int $code, string $reason);