| Channel | Use |
|---|---|
/v1/sandboxes/{id}/ws | Streaming exec, PTY, and sandbox file-watch control messages. |
/v1/volumes/{id}/ws | Direct volume watch events. |
/v1/lifecycle/ws | Lifecycle event stream. |
/v1/monitor/ws | Fleet/sandbox monitor stream for snapshots, updates, metrics, processes, and errors. |
/v1/sandboxes/{id}/access/desktop-viewer/ws | Managed desktop viewer bridge. |
sandbox.get_websocket_url(port) | Signed public WebSocket access to a service running in the sandbox. |
sandbox.get_host_info(22).websocket_url | Legacy signed SSH-over-WebSocket proxy URL for older port-22 fallback deployments. |
pty_exited as a transport disconnect.
Default SSH access uses the certificate-backed relay through nullspace ssh and
does not consume one of these WebSocket channels.
SDK examples
Public exposed-port WebSockets
Monitor subscribe message
Custom clients send amonitor_subscribe message to /v1/monitor/ws:
snapshot, update, metrics, processes, and
error payloads. Use SDK callbacks unless you need a non-Python client.
Full protocol
The longer repository protocol reference, including message shapes, lives atdocs/product/reference/websocket-protocol.md.