Overview
WebSocket connections allow your application to receive real-time status updates without polling. This is ideal for applications that need to stay synchronized with live data changes.Connection
To establish a WebSocket connection, connect to the following endpoint:Authentication
You do not need any Auth headers for WebSocket connections. Instead, connect to the WebSocket and send a message containing the following.Events
Connection Established
When a connection is successfully established, you’ll receive a confirmation message:Status Update
Real-time status updates are sent each time a health check is performed. An example response is shown below:Connection Closed
To unsubscribe from updates, send the following JSON Data:Example Implementation
JavaScript/TypeScript
Python
Best Practices
Keep Connections Alive
Send periodic keep-alive messages to prevent idle timeout.
Handle Disconnections Gracefully
Implement automatic reconnection with exponential backoff to handle network
issues gracefully.
Parse Messages Carefully
Always validate the message structure before processing to prevent errors from
malformed data.
Monitor Resource Usage
Keep track of the number of active connections and implement connection
pooling if needed for high-volume applications.