gaming-hub/web
Daniel dacfde4328 fix(streaming): resolve stale closure preventing remote WebRTC connections
The WebSocket onmessage handler captured isBroadcasting=false at creation
time. When ICE candidates arrived from remote viewers, the handler looked
up viewerPcRef instead of peerConnectionsRef, dropping all candidates.

Fix: use refs (isBroadcastingRef, viewingRef, handleWsMessageRef) so the
WS handler always reads current state. connectWs() now has [] deps and
delegates to handleWsMessageRef.current for every message.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 00:51:09 +01:00
..
public chore: globe texture q90 statt q85 2026-03-06 20:13:53 +01:00
src fix(streaming): resolve stale closure preventing remote WebRTC connections 2026-03-07 00:51:09 +01:00
index.html Initial commit: Gaming Hub foundation 2026-03-05 22:52:13 +01:00
package.json Fix: Add @types/three for TypeScript build 2026-03-06 10:44:19 +01:00
tsconfig.json Initial commit: Gaming Hub foundation 2026-03-05 22:52:13 +01:00
vite.config.ts Initial commit: Gaming Hub foundation 2026-03-05 22:52:13 +01:00