Started work on queue panel

This commit is contained in:
rainbow napkin 2025-01-21 08:15:35 -05:00
parent 4f6b3318a0
commit 42c20455e5
16 changed files with 342 additions and 14 deletions

View file

@ -55,6 +55,10 @@ class channel{
this.socket.on("clientMetadata", this.handleClientInfo.bind(this));
this.socket.on("error", console.log);
this.socket.on("queue", (data) => {
this.queue = data.queue;
})
}
handleClientInfo(data){
@ -68,6 +72,9 @@ class channel{
//Tell the chatbox to handle client info
//should it have its own event listener instead? Guess it's a stylistic choice :P
this.chatBox.handleClientInfo(data);
//Store queue for use by the queue panel
this.queue = data.queue;
}
}