Skip to content

Conversation

@dlemiech
Copy link
Contributor

@dlemiech dlemiech commented Dec 29, 2025

Description

Added reconnect after unintentional socket closure. Attempts delays extends with number of unsuccessful reconnect to not exhaust browser (keeps 30s reconnect attempt at last stage).

Checklist:

  • I agree to use the APACHE-2.0 license for my code changes.
  • I have not introduced any 3rd party components incompatible with APACHE-2.0.
  • I have not included any company confidential information, trade secret, password or security token.
  • I have performed a self-review of my code.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements a WebSocket reconnection mechanism with exponential backoff to handle unintentional connection closures. The implementation automatically attempts to reconnect after unexpected disconnections while avoiding unnecessary reconnection attempts when the connection is intentionally closed.

Key Changes:

  • Added exponential backoff reconnection logic with configurable delays (1s initial, 30s max)
  • Implemented distinction between intentional and unintentional connection closures
  • Added reconnection scheduling and cleanup mechanisms

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dlemiech dlemiech merged commit d0ba6e5 into main Jan 8, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants