>>

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 Client Payload 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"
}
>>

AUTHENTICATE

The first payload the client is supposed to send. The data of this payload is expected to be a session token obtained from the Create Session route.

FieldTypeDescription
op"AUTHENTICATE"The op of this Client Payload variant.
dStringThe data of this variant
>>

Example

{
  "op": "AUTHENTICATE",
  "d": "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoyMzQxMDY1MjYxMDU3LCJzZXNzaW9uX2lkIjoyMzQxMDgyNDMxNDg5fQ.j-nMmVTLXplaC4opGdZH32DUSWt1yD9Tm9hgB9M6oi4" // You're not supposed to use this example token (eckd)
}