STATE_CONNECTING
STATE_CONNECTING = 0
User is connecting, handshake not yet performed.
Class representing a WebSocket client.
$server : \PHP\WebSocket\SocketServer
Reference to server that created the client.
__construct(\PHP\WebSocket\SocketServer $server, resource $socket, integer $state = self::STATE_CONNECTING)
Constructor, sets the server that spawned the client and the socket.
\PHP\WebSocket\SocketServer | $server | Parent server |
resource | $socket | User socket |
integer | $state | Initial state |