Module ntex::ws [−][src]
WebSocket protocol support.
To setup a WebSocket
, first do web socket handshake then on success
convert Payload
into a WsStream
stream and then use WsWriter
to
communicate with the peer.
Structs
CloseReason | Reason for closing the connection |
Codec | WebSockets protocol codec |
Parser | WebSocket frame parser. |
StreamDecoder | Stream ws protocol decoder. |
StreamEncoder | Stream ws protocol decoder. |
WsSink |
Enums
CloseCode | Status code used to indicate why an endpoint is closing the |
Frame | WebSocket frame |
Item | WebSocket continuation item |
Message | WebSocket message |
OpCode | Operation codes as part of rfc6455. |
ProtocolError | Websocket protocol errors |
WsError | Websocket service errors |
Functions
hash_key |