>>

Client Payload

Pandemonium websocket payloads sent by the client to the server.

>>

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 Server Payload enum.

FieldTypeDescription
op“PING”The op of this ClientPayload variant.

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.

>>

Example

> {"op":"PING"}
< {"op":"PONG"}