Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-05-14 19:04:23 +00:00
parent 880d09231d
commit 10a0c83584
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -3,6 +3,7 @@ import {
generateRoomCode,
joinSignalingChannel,
sendSignal,
waitForSignalingReady,
ICE_SERVERS,
type SignalMessage,
} from './signaling';
+2 -1
View File
@@ -6,7 +6,8 @@ export type SignalMessage =
| { type: 'viewer-leave'; viewerId: string }
| { type: 'offer'; viewerId: string; sdp: RTCSessionDescriptionInit }
| { type: 'answer'; viewerId: string; sdp: RTCSessionDescriptionInit }
| { type: 'ice'; viewerId: string; from: 'broadcaster' | 'viewer'; candidate: RTCIceCandidateInit };
| { type: 'ice'; viewerId: string; from: 'broadcaster' | 'viewer'; candidate: RTCIceCandidateInit }
| { type: 'frame'; dataUrl: string; ts: number };
const readyChannels = new WeakMap<RealtimeChannel, Promise<void>>();