Moved server-side queue transmission to it's own protected namespace.
This commit is contained in:
parent
5eb307bb9e
commit
6d16ac2353
5 changed files with 28 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue