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§
- Client
Request - A client’s opening handshake.
- Message
- A text string, a block of binary data or a WebSocket control frame.
- Message
Codec - Tokio codec for WebSocket messages. This codec can send and receive
Message
structs. - Upgrade
Codec - 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.