Connecting
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-emitjoin:build for any rooms you were in.
Closing the connection
Alwaysdisconnect cleanly when you’re done — especially in serverless environments where lingering connections cost money.