Module server
Expand description
WebSocket server types and utilities
Structs§
- Client
Request Data - Server
WebSocket - Server WebSocket, used as input-output stream.
- WebSocket
Acceptor - An acceptor that can be used for upgrades os WebSockets on the server side.
- WebSocket
Acceptor Service - Shortcut that can be used for endpoint WS services.
- WebSocket
Echo Service - Create a service which echos all incoming messages.
- WebSocket
Matcher - WebSocket
Matcher
to match on incoming WebSocket requests.
Enums§
- Request
Validate Error - 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
.