Changes
Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
@@ -3,6 +3,7 @@ import {
|
||||
generateRoomCode,
|
||||
joinSignalingChannel,
|
||||
sendSignal,
|
||||
waitForSignalingReady,
|
||||
ICE_SERVERS,
|
||||
type SignalMessage,
|
||||
} from './signaling';
|
||||
|
||||
@@ -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>>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user