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§
- Agent
Sender - Per-node sender so the master can push messages to a connected agent.