The high-level interface to create a Websocket server based on "messages".
The high-level interface to create a Websocket server based on "messages".
Returns a response to return in a request handler that will signal the low-level HTTP implementation to upgrade the connection to Websocket and use the supplied handler to handle incoming Websocket messages. Optionally, a subprotocol out of the ones requested by the client can be chosen.
A sequence of protocols the client accepts.
A sequence of protocols the client accepts.
See http://tools.ietf.org/html/rfc6455#section-1.9
Returns the sequence of protocols the client accepts.
Returns the sequence of protocols the client accepts.
See http://tools.ietf.org/html/rfc6455#section-1.9
Returns a response that can be used to answer a Websocket handshake request.
Returns a response that can be used to answer a Websocket handshake request. The connection will afterwards use the given handlerFlow to handle Websocket messages from the client. The given subprotocol must be one of the ones offered by the client.
Returns a response that can be used to answer a Websocket handshake request.
Returns a response that can be used to answer a Websocket handshake request. The connection will afterwards use the given handlerFlow to handle Websocket messages from the client.
(upgradeToWebsocket: StringAdd).self
(upgradeToWebsocket: StringFormat).self
(upgradeToWebsocket: ArrowAssoc[UpgradeToWebsocket]).x
(Since version 2.10.0) Use leftOfArrow
instead
(upgradeToWebsocket: Ensuring[UpgradeToWebsocket]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
A custom header that will be added to an Websocket upgrade HttpRequest that enables a request handler to upgrade this connection to a Websocket connection and registers a Websocket handler.