Pike v8.0 release 1738

Method Protocols.WebSocket.Request()->websocket_accept()


Method websocket_accept

Connection websocket_accept(string protocol)

Description

Calling websocket_accept completes the WebSocket connection handshake. The protocol should be either 0 or a protocol advertised by the client when initiating the WebSocket connection. The returned connection object is in state Connection.OPEN.