The payload the client is supposed to periodically send the server to not get disconnected.
The interval where these pings are supposed to be sent can be found in the HELLO payload of the ServerPayload enum.
HELLO
Note You are supposed to send your first ping in a connection after RAND * heartbeat_interval seconds, RAND being a random floating number between 0 and 1. This is done to avoid immediately overloading Pandemonium by connecting if it ever has to go down.
Note
You are supposed to send your first ping in a connection after RAND * heartbeat_interval seconds, RAND being a random floating number between 0 and 1.
RAND * heartbeat_interval
RAND
This is done to avoid immediately overloading Pandemonium by connecting if it ever has to go down.
{ "op": "PING"} Copy
{ "op": "PING"}
The payload the client is supposed to periodically send the server to not get disconnected.
The interval where these pings are supposed to be sent can be found in the
HELLO
payload of the ServerPayload enum.Example