You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Enhance WebSocketConnector with reconnection logic and configuration options
- Added `_currentAttempt` property to track reconnection attempts.
- Introduced `_handleConnectionFailure` method to manage reconnection logic with exponential backoff.
- Updated `WebSocketOptions` to replace `idleTimeout` with `idleTimeoutMs` and `reconnectOnFailure` with `reconnectAttempts`.
- Modified `WebSocketConnectorBase` to utilize new options and handle connection failures.
- Updated tests to reflect changes in configuration options and validate reconnection behavior.
- Ensured reconnection attempts are capped at a maximum of 10 to prevent excessive retries.
0 commit comments