Request to establish websocket connection from the client
Request to establish websocket connection from the client
Host (port) of the server
Any Header information. Note that Method will be always GET replacing any other method configured. Also any WebSocket Handshake headers will be overriden.
True, if the connection shall be secure (wss)
Creates a websocket to be used on server side.
Creates a websocket to be used on server side.
Implementation is according to RFC-6455 (https://tools.ietf.org/html/rfc6455).
A websocket pipe. I
is received from the client and O
is sent to client.
Decoder (for I) and Encoder (for O) must be supplied.
Note that this function may evaluate on the left, to indicate response to the client before
the handshake took place (i.e. Unauthorized).
An interval for the Ping / Pong protocol.
An timeout to await for handshake to be successfull. If the handshake is not completed within supplied period, connection is terminated.