Skip to main content

Module conn

Module conn 

Source
Expand description

Message-level reader and writer halves of a WebSocket connection.

Modules§

close_code
Standard close codes (RFC 6455 §7.4.1).

Structs§

WsConfig
WsReader
Reading half. WsReader::recv is cancel-safe: all progress is kept in self, so it can be used as a tokio::select! branch.
WsWriter
Writing half. Not cancel-safe: do not race send_* futures in select!.

Enums§

Message
Role
WsError