Module actix_http::ws

source ·
Expand description

WebSocket protocol implementation.

To setup a WebSocket, first perform the WebSocket handshake then on success convert Payload into a WsStream stream and then use WsWriter to communicate with the peer.

Structs

Enums

  • Status code used to indicate why an endpoint is closing the WebSocket connection.
  • A WebSocket frame.
  • WebSocket handshake errors
  • A WebSocket continuation item.
  • A WebSocket message.
  • Operation codes defined in [RFC 6455 §11.8].
  • WebSocket protocol errors.

Functions

  • Verify WebSocket handshake request and create handshake response.
  • Create WebSocket handshake response.
  • Hashes the Sec-WebSocket-Key header according to the WebSocket spec.
  • Verify WebSocket handshake request.