Skip to main content

Module ws_client

Module ws_client 

Source
Expand description

WebSocket client to weave-server /ws/edge.

Runs a long-lived reconnect loop: after connect, sends a Hello frame, reads frames from the server (updating the RoutingEngine and local cache on ConfigFull/ConfigPatch), and forwards outbound EdgeToServer frames produced by adapters.

On unreachable server, the agent loads the cached config so local routing keeps working; the reconnect loop retries in the background.

Structsยง

WsClient