removed console.log

This commit is contained in:
Maieul BOYER 2026-01-12 16:40:19 +01:00 committed by Maix0
parent 43e3b9af26
commit ed2885f19d
3 changed files with 0 additions and 12 deletions

View file

@ -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)!;