summaryrefslogtreecommitdiff
path: root/client-web/source/room.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client-web/source/room.ts')
-rw-r--r--client-web/source/room.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/client-web/source/room.ts b/client-web/source/room.ts
index ba18162..8fd165d 100644
--- a/client-web/source/room.ts
+++ b/client-web/source/room.ts
@@ -24,6 +24,8 @@ export class Room {
constructor(public signaling: SignalingConnection, public rtc_config: RTCConfiguration) {
this.element = e("div", { class: "room", aria_label: "user list" })
+ signaling.control_handler.add_listener(p => this.control_handler(p))
+ signaling.relay_handler.add_listener(([a, b]) => this.relay_handler(a, b))
}
control_handler(packet: ClientboundPacket) {
@@ -58,4 +60,4 @@ export class Room {
log("ws", `<- [relay from ${sender.display_name}]: `, message);
sender.on_relay(message)
}
-} \ No newline at end of file
+}