Expand description
Per-client fan-out manager for WebSocket sink server mode.
Manages per-client state, bounded send buffers, and slow client eviction. Each connected client gets its own ring-buffer channel so that a slow client cannot block or affect other clients.
The RingSender/RingReceiver pair implements true DropOldest
semantics: when the buffer is full, the oldest message is evicted
to make room for the new one.
Structs§
- Broadcast
Result - Result of a broadcast operation.
- Client
State - Per-client state within the fan-out manager.
- Fanout
Manager - Fan-out manager that distributes messages to connected WebSocket clients.
- Replay
Buffer - Circular replay buffer for client resume support.
- Ring
Receiver - Receiver half of a bounded ring-buffer channel.
- Ring
Sender - Sender half of a bounded ring-buffer channel.
Enums§
- Ring
Send Result - Result of a send attempt on a ring channel.
Functions§
- ring_
channel - Creates a ring-buffer channel pair with the given capacity.
Type Aliases§
- Client
Id - Unique identifier for a connected WebSocket client.