removed console.log
This commit is contained in:
parent
43e3b9af26
commit
ed2885f19d
3 changed files with 0 additions and 12 deletions
|
|
@ -47,7 +47,6 @@ export class StateI {
|
|||
socket.on('disconnect', () => this.cleanupUser(socket));
|
||||
socket.on('enqueue', () => this.enqueueUser(socket));
|
||||
socket.on('dequeue', () => this.dequeueUser(socket));
|
||||
socket.on('debugInfo', () => this.debugSocket(socket));
|
||||
socket.on('gameMove', (e) => this.gameMove(socket, e));
|
||||
socket.on('keepalive', () => this.keepAlive(socket));
|
||||
if (socket) {
|
||||
|
|
@ -164,15 +163,6 @@ export class StateI {
|
|||
socket.emit('queueEvent', 'unregistered');
|
||||
}
|
||||
|
||||
private debugSocket(socket: SSocket): void {
|
||||
console.log(({
|
||||
message: `socket debug for ${socket.id}`,
|
||||
userid: socket.authUser.id,
|
||||
queue: this.queue,
|
||||
users: this.users,
|
||||
}));
|
||||
}
|
||||
|
||||
private gameUpdate(gameId: TTTGameId, socket: SSocket): void {
|
||||
if (!this.users.has(socket.authUser.id)) return;
|
||||
const user = this.users.get(socket.authUser.id)!;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue