Skip to main content

Module ws_client

Module ws_client 

Source
Expand description

Long-lived WSS client. Performs the signed handshake (auth_challengeauth_responseauth_ok) and runs heartbeat/job loops thereafter. Reconnect with exponential backoff per plan/V2_AGENT_SPEC.md §9.

NOTE: this is the scaffold. Job dispatch and capability discovery are implemented in subsequent tasks (#15/#16). For now we authenticate, send a placeholder capabilities payload, then drive heartbeats while listening for and tracing-logging incoming messages.

Functions§

run
Connect, authenticate, and run forever with reconnect.