Method Protocols.WebSocket.Request()->websocket_accept()
- Method
websocket_accept
Connectionwebsocket_accept(void|stringprotocol,void|array(extension_factory)extensions,void|mappingextra_headers)- Description
Calling websocket_accept completes the WebSocket connection handshake. The
protocolparameter should be either0or one of the protocols advertised by the client when initiating the WebSocket connection. Extensions can be specified using theextensionsparameter. Additional HTTP headers in the response can be specified using theextra_headersargument.The returned connection object is in state Connection.OPEN.