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.

Re-exports

  • pub use self::codec::Frame;
  • pub use self::codec::Message;
  • pub use self::proto::CloseCode;
  • pub use self::proto::CloseReason;
  • pub use self::sink::WsSink;

Modules

  • WebSocket protocol related errors.

Structs

Enums

  • WebSocket continuation item
  • Operation codes as part of rfc6455.

Functions