Skip to content

feat(serve): automatically reconnect client on server restart#1720

Merged
yu-ogi merged 4 commits intomainfrom
serve-feat-reconnect
Mar 31, 2026
Merged

feat(serve): automatically reconnect client on server restart#1720
yu-ogi merged 4 commits intomainfrom
serve-feat-reconnect

Conversation

@yu-ogi
Copy link
Copy Markdown
Contributor

@yu-ogi yu-ogi commented Mar 30, 2026

このPullRequestが解決する内容

サーバ切断時、サーバ側が再起動されたらクライアント側で自動的に再接続するように修正します。

@yu-ogi yu-ogi requested review from dera- and xnv March 30, 2026 02:37
// 切断済みの場合のみリロードする (初回接続時の serverReady は無視する)。
// サーバが復帰したらページをリロードして再初期化する。
// これにより同じサーバへの再接続でも新しいサーバへの接続でも正しく動作する。
if (!this.store.isSocketDisconnect) return;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ここで this.store.isSocketReconnecting のチェックもしなくて大丈夫でしょうか?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

8a85d87 チェック追加しました。

@yu-ogi yu-ogi merged commit 9526a17 into main Mar 31, 2026
8 checks passed
@yu-ogi yu-ogi deleted the serve-feat-reconnect branch March 31, 2026 08:18
@github-actions github-actions Bot mentioned this pull request Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants