Module protocol

Source
Expand description

Holds types that define WebSocket data at a low level.

See RFC6455 “The WebSocket Protocol” for a detailed definition of the fields in the frame header and their relation to the overall WebSocket protocol.

Structs§

FrameHeader
Describes an individual frame within a WebSocket message at a low level.
FrameHeaderCodec
Tokio codec for the low-level header portion of WebSocket frames. This codec can send and receive FrameHeader structs.

Enums§

DataLength
Describes the length of the payload data within an individual WebSocket frame.