tournament: add: TOURNAMENT CAN START
This commit is contained in:
@ -51,6 +51,7 @@ class Tourmanent
|
||||
this.finished = response_data.finished;
|
||||
this.levels = response_data.levels;
|
||||
this.id = response_data.id
|
||||
this.state = this.get_state();
|
||||
}
|
||||
|
||||
leave(event)
|
||||
@ -66,10 +67,7 @@ class Tourmanent
|
||||
{
|
||||
if (!this.connected)
|
||||
return
|
||||
console.log(this.isParticipating);
|
||||
this.isParticipating = !this.isParticipating;
|
||||
console.log(this.isParticipating);
|
||||
this._socket.send(JSON.stringify({participate: this.isParticipating}));
|
||||
this._socket.send(JSON.stringify({participate: ""}));
|
||||
}
|
||||
|
||||
async join(receive_func, disconnect_func)
|
||||
|
Reference in New Issue
Block a user