Moved server-side queue transmission to it's own protected namespace.

This commit is contained in:
rainbow napkin 2025-10-22 05:00:59 -04:00
parent 5eb307bb9e
commit 6d16ac2353
5 changed files with 28 additions and 11 deletions

View file

@ -113,7 +113,8 @@ class channel{
this.socket.on("error", utils.ux.displayResponseError);
this.socket.on("queue", (data) => {
this.queueBroadcastSocket.on("queue", (data) => {
console.log(data);
this.queue = new Map(data.queue);
});
@ -138,9 +139,6 @@ class channel{
//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 = new Map(data.queue);
//Store queue lock status
this.queueLock = data.queueLock;
}