WebSocket Keep-Alive
Keep the socket alive by matching the server ping cadence and reply window.
Connection Guide
Keep-alive
The server sends ping frames every 30 seconds. Clients that do not answer within 60 seconds are disconnected.
JavaScript
// Send a ping to keep connection alivews.send(JSON.stringify({ op: "ping" }));
// Server responds with:// {"type": "pong"}