kicksdk (JavaScript)
    Preparing search index...

    Function retryAfterMs

    • The least to wait, ms, before reconnecting after the socket closed with this code: 300000 (5 minutes) for Kick's terminal codes (3500-3999 and 4500-4999: a bad token, a ban, a refused request), then reconnect with a new client id; 0, the ordinary backoff, for the rest (1006, a network drop, among them).

      Parameters

      • code: number

      Returns number