Inbound WebSocket frame routing for ZenWebsocket.Client.
Summary
Functions
Routes a Gun WebSocket frame: heartbeat tracking, control-frame decode, then data dispatch.
Restores subscriptions after reconnection if configured.
Routes data frames to heartbeat, subscription, JSON-RPC, or the user handler.
Sends a text frame, correlating JSON-RPC requests that carry an id.
Functions
Routes a Gun WebSocket frame: heartbeat tracking, control-frame decode, then data dispatch.
Restores subscriptions after reconnection if configured.
Routes data frames to heartbeat, subscription, JSON-RPC, or the user handler.
@spec send_text(map(), pid(), reference(), binary(), GenServer.from()) :: {:noreply, map()} | {:reply, term(), map()}
Sends a text frame, correlating JSON-RPC requests that carry an id.