Compute the exponential-backoff delay (ms) for a reconnection attempt.
delay = min(baseDelay * 2^attempt, maxDelay), where attempt is the zero-based count of reconnects already made.
delay = min(baseDelay * 2^attempt, maxDelay)
attempt
Compute the exponential-backoff delay (ms) for a reconnection attempt.
delay = min(baseDelay * 2^attempt, maxDelay), whereattemptis the zero-based count of reconnects already made.