Skip to content

Add opt-in WebRTC spectator state with authorized SSE fallback - #24

Merged
jcs130 merged 1 commit into
mainfrom
feat/web-webrtc-20261107
Nov 7, 2026
Merged

jcs130 merged 1 commit into
mainfrom
feat/web-webrtc-20261107

Conversation

@jcs130

@jcs130 jcs130 commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Native viewers can optionally carry the existing state stream over a reliable ordered WebRTC DataChannel. The browser keeps SSE during negotiation and falls back to the same authorized route on failure. Legacy hosts keep SSE without RTC probing; publisher WSS, original resources, same-body identity checks and owner/public projection remain unchanged. This is browser-to-portal transport only, read-only, with no Minecraft action replay or extra body.

The host injects its peer backend. The implementation bounds SDP, messages, peers, queued bytes and negotiation time, rechecks permissions, tears down revoked/offline sources, and packages the matching host/codec/browser artifact. Production is not enabled by this source change, and no WAN performance improvement is claimed.

Validation: 71 focused checks including real ICE/DTLS/SCTP; complete renderer tools suite 1606 passed / 43 conditional asset skips, including actual portable build/import; 8 real headless Edge fixture checks passed with zero page errors. Full gameplay/render parity and public NAT testing remain separate. A pinned optional Werift wire backend is exercised by the new CI workflow. Setup and exact boundaries: docs/spectator-webrtc.md.

@jcs130
jcs130 merged commit ce4e9ea into main Nov 7, 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