Expand description
Multiplexed client mode (TCP/TLS/Unix and WS/WSS). A single message connection is shared across all calls and subscriptions. A background task splits reader from writer.
Enumsยง
- NewMsg ๐
Constantsยง
- OUTBOUND_
BUFFER_ ๐SIZE - Capacity of the outbound queue feeding the writer task. Small because each in-flight call already has its own response channel, so this only buffers bursts between caller and writer.
Functionsยง
- background_
loop ๐ - build_
backend_ ๐state - build_
byte_ ๐backend - Build the multiplexed backend by connecting over a byte stream (TCP, TLS, or Unix) and framing it.
- build_
ws_ ๐backend - Build the multiplexed backend by connecting over a WebSocket.
- connect_
byte ๐ - connect_
ws ๐ - handle_
mux_ ๐msg - run_
io_ ๐loop - send_
request ๐ - start_
io_ ๐loop - Spawn the reader/writer task that drives the multiplexed wire.