Recover dropped WebRTC routes without replacing the player seat - #35
Merged
Merged
Conversation
Signed-off-by: Stephen DeLorme <stephen@d.elor.me>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
sbddesign
marked this pull request as ready for review
September 6, 2026 20:44
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a connected player's WebRTC route drops, try an ICE restart on the existing connection so their data channel and seat survive. Either side can notice the outage; the joiner owns restart offers. If recovery fails within the existing eight-second grace period, retain CONNECTION LOST and manual RETRY.
Keep signalling alive until channel close. Bind restart messages to the established peer and attempt number; buffer early candidates, retry lost offers/answers, and remove recovery listeners on leave or failure. No new infrastructure or gameplay protocol version is required.
Validation:
cf6b284(run).The browser check injects an outage notification and exercises real renegotiation over Nostr. A physical Wi-Fi interruption across two devices remains unverified. Recovery cannot replace TURN when no direct route exists or keep a match alive after its host leaves.
The local gate also printed 147 clean catches and restored the worktree, but its supervisor hit the ten-minute cap; the successful complete-run verdict above is from GitHub.
Preview: https://neon-orbit-m5abgrh1p-delineatormedia.vercel.app/?host=2