Module ntex::ws

source · []
Expand description

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.

Modules

WebSocket protocol related errors.

Structs

Reason for closing the connection
WebSockets protocol codec
WebSocket frame parser.
WebSocket client builder
WebSocket client builder
An implementation of WebSockets streams
WebSockets transport factory

Enums

Status code used to indicate why an endpoint is closing the WebSocket connection.
WebSocket frame
WebSocket continuation item
WebSocket message
Operation codes as part of rfc6455.

Functions

Verify WebSocket handshake request and create handshake reponse.
Create websocket’s handshake response
Verify WebSocket handshake request.