aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/packets.d.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/common/packets.d.ts b/common/packets.d.ts
index c5e9637..02108a3 100644
--- a/common/packets.d.ts
+++ b/common/packets.d.ts
@@ -1,7 +1,6 @@
// copy pasted from dom.lib.d.ts because it can not be referenced in the server.
-type F_RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
-interface F_RTCSessionDescriptionInit { sdp?: string; type: F_RTCSdpType; }
+type Sdp = string
interface F_RTCIceCandidateInit { candidate?: string; sdpMLineIndex?: number | null; sdpMid?: string | null; usernameFragment?: string | null; }
export interface /* enum */ ClientboundPacket {
@@ -28,8 +27,8 @@ export interface /* enum */ RelayMessage {
provide?: ProvideInfo
request?: { id: number }
- offer?: F_RTCSessionDescriptionInit,
- answer?: F_RTCSessionDescriptionInit,
+ offer?: Sdp,
+ answer?: Sdp,
ice_candidate?: F_RTCIceCandidateInit,
}
export interface ChatMessage { text?: string, image?: string }