Establishes websocket connection to the server.
Establishes websocket connection to the server.
Implementation is according to RFC-6455 (https://tools.ietf.org/html/rfc6455).
If this is established successfully, then this consults pipe
to receive/sent any frames
From/To server. Once the connection finishes, this will emit once None.
If the connection was not established correctly (i.e. Authorization failure) this will not consult supplied pipe and instead this will immediately emit response received from the server.
WebSocket request
Pipe that is consulted when websocket is established correctly
Max size of Http Response header received
Size of receive buffer to use
Maximum size of single websocket frame. If the binary size of single frame is larger than supplied value, websocket will fail.
Codec to encode HttpRequests Header
Codec to decode HttpResponse Header
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.
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.
Maximum size of single websocket frame. If the binary size of single frame is larger than supplied value, websocket will fail.