diff options
author | metamuffin <metamuffin@disroot.org> | 2022-09-16 14:33:20 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-09-16 14:33:20 +0200 |
commit | ff2329cac03703a10ce8b3793d707131403318b4 (patch) | |
tree | 18fd12ea0ccaf19ba351eb8fc199a512314f7d59 /common | |
parent | fa47c353d7ebc653e5a90eee68535fb6e55f2c30 (diff) | |
download | keks-meet-ff2329cac03703a10ce8b3793d707131403318b4.tar keks-meet-ff2329cac03703a10ce8b3793d707131403318b4.tar.bz2 keks-meet-ff2329cac03703a10ce8b3793d707131403318b4.tar.zst |
remove redundant RTCSessionDescriptionInit type
Diffstat (limited to 'common')
-rw-r--r-- | common/packets.d.ts | 7 |
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 } |