Skip to main content

Crate turnloop_websocket

Crate turnloop_websocket 

Source
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§

ClientHandshake
CloseFrame
A struct representing the close command.
Connection
Received
One Connection::receive step: how much of input was taken, and the message it completed, if any.
WebSocketConfig
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

Functions§

accept
node_error_code