Overview of the Sidecar Communication Protocol
mainThe Brain and Sidecars communicate via a single WebSocket connection using an asynchronous, event-oriented protocol. There is no request-response coupling at the transport level; instead, the WebSocket acts as a bidirectional pipe for typed messages.
- Brain → Sidecar: Uses RPC requests to trigger execution on the sidecar.
- Sidecar → Brain: Uses Events to send notifications, including RPC results.
All events from all sidecars are funneled into a central event scheduler on the Brain for ordered processing.