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 Bytes as the payload storage underneath.
  • 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.