Keeping the connection alive

To keep the connection alive, a Ping frame will be sent from the server every 20s, and a Pong is expected to be received from the client. If a Pong is not received within 60s, a Close frame will be sent and the connection will be closed.

If the server is shutting down, a Close frame will be sent and then a grace period of 20s will be given before the connection is closed. The client should reconnect after receiving the Close frame. The client will be reconnected to a server that is not shutting down.

Last updated