clean: remove print
This commit is contained in:
parent
ae20be25fb
commit
f0aaf0f29e
@ -18,17 +18,12 @@ class MatchMaking
|
|||||||
if (!await this.client.isAuthentificate())
|
if (!await this.client.isAuthentificate())
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
console.log(func)
|
|
||||||
this.callback = func
|
|
||||||
console.log(this.callback)
|
|
||||||
|
|
||||||
let url = `wss://${window.location.host}/ws/matchmaking/`;
|
let url = `wss://${window.location.host}/ws/matchmaking/`;
|
||||||
|
|
||||||
this._chatSocket = new WebSocket(url);
|
this._chatSocket = new WebSocket(url);
|
||||||
|
|
||||||
this._chatSocket.onmessage = function (event) {
|
this._chatSocket.onmessage = function (event) {
|
||||||
const data = JSON.parse(event.data);
|
const data = JSON.parse(event.data);
|
||||||
console.log(func, data)
|
|
||||||
func(data.game_id)
|
func(data.game_id)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user