Expand description
WebSocket protocol over in-memory Read/Write views, never sockets. HTTP upgrade
heads come from turnloop-http; pass unconsumed upgrade bytes to receive.
permessage-deflate is deliberately not negotiated (tungstenite has no support).
§Getting started on turnloop
Enable the turnloop feature for the asynchronous module. The embedding
host owns LocalExecutor and calls turn; adapters await its streams and
deadline futures. See the crate README and turnloop-io for ownership, streaming
and cancellation examples. Default features retain the sans-I/O API.
Structs§
- Client
Handshake - Close
Frame - A struct representing the close command.
- Connection
- Received
- One
Connection::receivestep: how much ofinputwas taken, and the message it completed, if any. - WebSocket
Config - The configuration for WebSocket connection.
Enums§
- Error
- Possible WebSocket errors.
- Message
- An enum representing the various forms of a WebSocket message.
- Role
- Indicates a Client or Server role of the websocket