There are two ways for you to keep the WebSocket connected:
- The server will send a ping command to the client every 10 seconds. If users do not respond within 10 seconds for ten consecutive times (over 100 seconds), the connection will be terminated automatically.
- The client can also send the ping every 10 seconds to keep the connection alive.
Kindly note the Websocket connections will expire every 24 hours. Users need to re-connect the services manually.