Skip to main content

Module ws_handler

Module ws_handler 

Source
Expand description

WebSocket handler for agent↔master streaming communication.

Agents connect to GET /api/v1/ws/agent?token=<cluster_token>&node_id=<id>. After the upgrade, messages flow bidirectionally using AgentMessage and MasterMessage JSON frames.

Structs§

WsQuery
Query params for the WS upgrade request.

Functions§

ws_agent_handler
Handle the WebSocket upgrade request.

Type Aliases§

AgentSender
Per-node sender so the master can push messages to a connected agent.