Expand description
Shared transport halves, message handlers, and writer commands.
MessageReader and the internal writer use BoxedWsTransport, keeping lifecycle code
independent of the selected transport backend. MessageHandler receives messages without
connection identity, while EpochMessageHandler attaches the owning reader’s connection epoch
to application messages and reconnect notifications.
The channel handlers convert neutral Message values to Tungstenite messages at the adapter
compatibility boundary. WriterCommand remains internal so all sink access, connection swaps,
and reconnect buffering stay serialized in the writer task.
Functions§
- channel_
epoch_ message_ handler - Creates a channel-based message handler carrying each reader’s connection epoch.
- channel_
message_ handler - Creates a channel-based message handler.
Type Aliases§
- Close
Handler - Handles a peer close frame and decides whether automatic reconnection continues.
- Epoch
Message Handler - Function type for handling WebSocket messages with connection ownership.
- Epoch
Ping Handler - Function type for handling WebSocket ping messages with connection ownership.
- Message
Handler - Function type for handling WebSocket messages.
- Message
Reader - Stream half of the active WebSocket transport.
- Ping
Handler - Function type for handling WebSocket ping messages.