Module server

Expand description

WebSocket server types and utilities

Structs§

ClientRequestData
ServerWebSocket
Server WebSocket, used as input-output stream.
WebSocketAcceptor
An acceptor that can be used for upgrades os WebSockets on the server side.
WebSocketAcceptorService
Shortcut that can be used for endpoint WS services.
WebSocketEchoService
Create a service which echos all incoming messages.
WebSocketMatcher
WebSocket Matcher to match on incoming WebSocket requests.

Enums§

RequestValidateError
Server error which can be triggered in case the request validation failed

Constants§

ECHO_SERVICE_SUB_PROTOCOL_DEFAULT
Default protocol used by WebSocketEchoService, incl when no match is found
ECHO_SERVICE_SUB_PROTOCOL_LOWER
Lowercase all characters as part of the echod response in WebSocketEchoService.
ECHO_SERVICE_SUB_PROTOCOL_UPPER
Uppercase all characters as part of the echod response in WebSocketEchoService.

Functions§

validate_http_client_request