summaryrefslogtreecommitdiff
path: root/client-web/source/room.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-09-10 00:56:25 +0200
committermetamuffin <metamuffin@disroot.org>2022-09-10 00:56:25 +0200
commit429dc2d5375abf8ca9c3861bdc4bdff52a31b0e4 (patch)
tree2fa8201ebdf45237a9ec90429bd18b5d6cdd9944 /client-web/source/room.ts
parent95041256f86745832df42423e889d50d2cff35e7 (diff)
downloadkeks-meet-429dc2d5375abf8ca9c3861bdc4bdff52a31b0e4.tar
keks-meet-429dc2d5375abf8ca9c3861bdc4bdff52a31b0e4.tar.bz2
keks-meet-429dc2d5375abf8ca9c3861bdc4bdff52a31b0e4.tar.zst
overlay rework + settings
Diffstat (limited to 'client-web/source/room.ts')
-rw-r--r--client-web/source/room.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/client-web/source/room.ts b/client-web/source/room.ts
index 11a5000..207b40d 100644
--- a/client-web/source/room.ts
+++ b/client-web/source/room.ts
@@ -15,6 +15,8 @@ export class Room {
public my_id!: number
public chat: Chat = new Chat(this)
+ public on_ready = () => { };
+
constructor(public signaling: SignalingConnection) {
this.signaling.control_handler = (a) => this.control_handler(a)
this.signaling.relay_handler = (a, b) => this.relay_handler(a, b)
@@ -33,6 +35,7 @@ export class Room {
log("*", `${p.id} joined`);
if (p.id == this.my_id) {
this.local_user = new LocalUser(this, p.id);
+ this.on_ready()
} else {
const ru = new RemoteUser(this, p.id)
this.local_user.add_initial_to_remote(ru)