Get current state.
Get current attempt number.
Check if reconnection is in progress.
Set a callback for handling errors thrown by reconnection event listeners.
By default, listener errors are silently ignored to prevent one buggy listener from breaking the entire reconnection flow. Use this method to customize error handling (e.g., logging to error tracking service).
Callback function to handle listener errors
Start reconnection process.
Function to call to attempt connection
OptionalrefreshTokenFn: () => Promise<RefreshResult | null>Optional function to refresh token
Abort reconnection.
Reset manager state.
Reconnection manager with Fibonacci backoff and auth-aware retry logic.
Features: