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
|
|
@ -137,8 +137,7 @@ class queuePanel extends panelObj{
|
|||
defineListeners(){
|
||||
//Render queue when we receive a new copy of the queue data from the server
|
||||
//Render queue should be called within an arrow function so that it's called with default parameters, and not handed an event as a date
|
||||
this.client.socket.on("clientMetadata", () => {this.renderQueue();});
|
||||
this.client.socket.on("queue", () => {this.renderQueue();});
|
||||
this.client.queueBroadcastSocket.on("queue", () => {this.renderQueue();});
|
||||
this.client.socket.on("start", this.handleStart.bind(this));
|
||||
this.client.socket.on("end", this.handleEnd.bind(this));
|
||||
this.client.socket.on("lock", this.handleScheduleLock.bind(this));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue