summaryrefslogtreecommitdiff
path: root/common/packets.d.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-09-09 11:42:06 +0200
committermetamuffin <metamuffin@disroot.org>2022-09-09 11:42:06 +0200
commitb6d93e0f322901dfc1fee23f3d396a68e61e1b29 (patch)
tree01ba855cf41fb53f84cd6eb504c4f4ba0134fdfa /common/packets.d.ts
parentafed94bb4609bd796102c9184f13fa29c5f92a48 (diff)
downloadkeks-meet-b6d93e0f322901dfc1fee23f3d396a68e61e1b29.tar
keks-meet-b6d93e0f322901dfc1fee23f3d396a68e61e1b29.tar.bz2
keks-meet-b6d93e0f322901dfc1fee23f3d396a68e61e1b29.tar.zst
crypto stuff
Diffstat (limited to 'common/packets.d.ts')
-rw-r--r--common/packets.d.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/packets.d.ts b/common/packets.d.ts
index 6ee4b9a..49ab295 100644
--- a/common/packets.d.ts
+++ b/common/packets.d.ts
@@ -8,15 +8,16 @@ export interface ClientboundPacket {
init?: { your_id: number, version: string },
client_join?: { id: number, name: string },
client_leave?: { id: number },
- message?: { sender: number, message: RelayMessage },
+ message?: { sender: number, message: string },
}
export interface ServerboundPacket {
ping?: null,
- relay?: { recipient?: number, message: RelayMessage },
+ relay?: { recipient?: number, message: string },
}
export interface RelayMessage {
+ identify?: { name: string }
offer?: F_RTCSessionDescriptionInit,
answer?: F_RTCSessionDescriptionInit,
ice_candidate?: F_RTCIceCandidateInit,