Skip to content

Add WS keepalive and client auto-reconnect with exponential backoff#3

Merged
afraser merged 1 commit into
mainfrom
fix/ws-keepalive-reconnect
Mar 3, 2026
Merged

Add WS keepalive and client auto-reconnect with exponential backoff#3
afraser merged 1 commit into
mainfrom
fix/ws-keepalive-reconnect

Conversation

@afraser

@afraser afraser commented Mar 3, 2026

Copy link
Copy Markdown
Owner

Server pings all clients every 30s and terminates any that don't pong back. Client useSignaling hook reconnects automatically on disconnect using exponential backoff (1s–30s). HostView clears stale room state on disconnect so a fresh room is requested once the connection is restored. Keepalive tests added; teardown updated to close WSS before HTTP server.

Server pings all clients every 30s and terminates any that don't pong
back. Client useSignaling hook reconnects automatically on disconnect
using exponential backoff (1s–30s). HostView clears stale room state on
disconnect so a fresh room is requested once the connection is restored.
Keepalive tests added; teardown updated to close WSS before HTTP server.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@afraser
afraser merged commit 8713de2 into main Mar 3, 2026
1 check passed
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.

1 participant