Skip to main content
Nullspace exposes several WebSocket channels: Lifecycle and machine control channels send WebSocket Ping frames every 15 seconds and close after two missed Pong responses. PTY clients should treat a close without 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

The signed URL is scoped to the machine, port, and WebSocket transport. Missing or expired edge tokens fail before traffic reaches the machine service.

Monitor subscribe message

Custom clients send a monitor_subscribe message to /v1/monitor/ws:
Server messages include 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 at docs/product/reference/websocket-protocol.md.