Skip to content

feat: implement lightweight reconnect mechanism for WebSocket connections - #51

Merged
bbbugg merged 7 commits into
mainfrom
performance/connect-WebSocket
Jan 30, 2026
Merged

feat: implement lightweight reconnect mechanism for WebSocket connections#51
bbbugg merged 7 commits into
mainfrom
performance/connect-WebSocket

Conversation

@bbbugg

@bbbugg bbbugg commented Jan 30, 2026

Copy link
Copy Markdown
Member

中文

  • 轻量级自动重连:当 WebSocket 意外断开时,系统会自动刷新页面并重新建立连接,无需重启浏览器,显著减少了服务中断时间。

English

  • Lightweight Auto-Reconnect: Automatically refreshes the page and re-establishes the WebSocket connection when an unexpected disconnect occurs, eliminating the need for a full browser restart and significantly reducing downtime.

This comment was marked as outdated.

This comment was marked as outdated.

bbbugg and others added 2 commits January 30, 2026 08:24
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@bbbugg
bbbugg merged commit 753e2c0 into main Jan 30, 2026
1 check passed
@github-actions

Copy link
Copy Markdown

🎉 此 PR 的修改已在版本 v0.5.3 中发布。
🎉 The changes in this PR have been released in version v0.5.3.

@bbbugg bbbugg added the ⚡️ Performance Speed or resource usage label Jan 31, 2026
@bbbugg
bbbugg deleted the performance/connect-WebSocket branch February 3, 2026 05:36
@bbbugg
bbbugg removed the request for review from Copilot March 23, 2026 17:59
ouni3 pushed a commit to ouni3/AIStudioToAPI that referenced this pull request Aug 20, 2026
…ions (iBUHub#51)

* feat: implement lightweight reconnect mechanism for WebSocket connections

* fix: clear reconnectGraceTimer on connection loss in ConnectionRegistry

* feat: enhance WebSocket connection handling with extended grace period and improved error management

* fix: reduce WebSocket reconnect grace period to 5 seconds and enhance reconnect handling

* fix: skip lightweight reconnect attempt when system is busy switching or recovering

* Update src/core/RequestHandler.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚡️ Performance Speed or resource usage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants