Interface ReconnectPolicy

Controls reconnecting of the client

interface ReconnectPolicy {
    nextRetryDelayInMs(context: ReconnectContext): null | number;
}

Implemented by

Methods

  • Called after disconnect was detected

    Parameters

    Returns null | number

    Amount of time in milliseconds to delay the next reconnect attempt, null signals to stop retrying.