Each agent holds one persistent, outbound WebSocket to the Deployer. Commands, results and heartbeats travel over it. Nothing ever connects to a node.

Frames

Behaviour

  • TLS. https:// becomes wss://, TLS 1.2 or later against the system roots. Plain ws:// only where plain HTTP is already allowed (loopback, or MANYLAYERS_AGENT_ALLOW_INSECURE).
  • Liveness. Both ends ping every 20 s and drop a peer that doesn’t answer within 10 s.
  • Reconnection. Exponential backoff with jitter, 1 s up to 60 s. The backoff resets only after a connection has lasted a minute.
  • Heartbeats use the channel while it is up and fall back to HTTPS when it is down, so channel trouble never costs a node its online status.
  • Shutdown. A Deployer shutting down closes every channel with “going away”, and agents reconnect.

Close codes

Test connection

The node page’s Test connection button, or:
Returns 409 when the node has no open channel.