Skip to main content
For live monitoring — build status changes and streamed log lines — use the Socket.IO channel. Polling the REST API works but wastes requests and adds latency.

Connecting

The auth.token is your standard API token. The token’s permissions determine which builds you can subscribe to.

Joining a build’s room

Events

status matches the values in Build statuses: pending, running, complete, failed, superseded. level is info, warn, or error.

Disconnect handling

The Socket.IO client library reconnects automatically. After reconnect, re-emit join:build for any rooms you were in.

Closing the connection

Always disconnect cleanly when you’re done — especially in serverless environments where lingering connections cost money.