Skip to main content

Module proto

Module proto 

Source
Expand description

This module contains a correct and complete implementation of RFC6455.

Any extensions are currently not implemented.

Structs§

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

Enums§

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