Module tokio_websockets::proto

source ·
Expand description

This module contains a correct and complete implementation of RFC6455.

Any extensions are currently not implemented.

Structs§

  • Close status code.
  • Low-level configuration for a WebSocketStream that allows configuring behavior for sending and receiving messages.
  • Configuration for limitations on reading of Messages from a WebSocketStream to prevent high memory usage caused by malicious actors.
  • A WebSocket message. This is cheaply clonable and uses Payload as the payload storage underneath.
  • The websocket message payload storage. Internally implemented as a smart wrapper around Bytes and BytesMut.
  • A WebSocket stream that full messages can be read from and written to.

Enums§

  • Error encountered on protocol violations by the other end of the connection.