Interface ServerPayloadRateLimit

Hierarchy

  • ServerPayloadRateLimit

Properties

d op

Properties

d: {
    wait: number;
}

Type declaration

  • wait: number

    The amount of milliseconds you have to wait before the rate limit ends

op: "RATE_LIMIT"

The payload sent when the client gets gateway rate limited.

The client is supposed to wait wait milliseconds before sending any more events, otherwise they are disconnected.


Example

{
"op": "RATE_LIMIT",
"d": {
"wait": 1010 // 1.01 seconds
}
}