aboutsummaryrefslogtreecommitdiff
path: root/common/packets.d.ts
diff options
context:
space:
mode:
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,