Skip to main content

Module websocket

Module websocket 

Source
Expand description

WebSocket client with auto-reconnect, message queueing, and channel mux.

Driven by tick(dt) each frame. Messages arrive as WsEvent values polled from drain_events(). Send messages with send().

Auto-reconnect: exponential backoff on disconnect. Message queue: outgoing messages buffered during disconnection. Channel mux: multiple logical channels on one connection.

Structs§

ChannelConfig
WsClient
WebSocket client driven by tick().

Enums§

WsEvent
WsMessage
WsState