Crate websocket_codec

Source
Expand description

A Tokio codec implementation of the WebSocket protocol.

This crate does not do any I/O directly. For a full WebSocket client, see the websocket-lite crate.

Modules§

protocol
Holds types that define WebSocket data at a low level.

Structs§

ClientRequest
A client’s opening handshake.
Message
A text string, a block of binary data or a WebSocket control frame.
MessageCodec
Tokio codec for WebSocket messages. This codec can send and receive Message structs.
UpgradeCodec
Tokio decoder for parsing the server’s response to the client’s HTTP Connection: Upgrade request.

Enums§

Opcode
Represents an opcode as defined by the WebSocket protocol.

Type Aliases§

Error
Represents errors that can be exposed by this crate.
Result
Represents results returned by the non-async functions in this crate.