cleaning code

This commit is contained in:
apetitco 2026-01-09 16:42:48 +01:00 committed by Maix0
parent 67a277da2d
commit 6bd3a01f5f
3 changed files with 0 additions and 14 deletions

View file

@ -28,8 +28,6 @@ export interface ClientToServer {
gameMove: (up: GameMove) => void;
keepalive: () => void;
connectedToGame: (gameId: string) => void;
// TODO:
joinQueueButton: () => void;
};
export interface ServerToClient {

View file

@ -28,8 +28,6 @@ export interface ClientToServer {
gameMove: (up: GameMove) => void;
keepalive: () => void;
connectedToGame: (gameId: string) => void;
// TODO:
joinQueueButton: () => void;
};
export interface ServerToClient {

View file

@ -48,9 +48,6 @@ export class StateI {
socket.on('enqueue', () => this.enqueueUser(socket));
socket.on('dequeue', () => this.dequeueUser(socket));
socket.on('debugInfo', () => this.debugSocket(socket));
// TODO:
socket.on('joinQueueButton', () => this.joinQueueButton(socket));
socket.on('gameMove', (e) => this.gameMove(socket, e));
socket.on('keepalive', () => this.keepAlive(socket));
if (socket) {
@ -204,13 +201,6 @@ export class StateI {
game?.makeMove(socket.authUser.id, update.index);
}
// TODO:
private joinQueueButton(socket: SSocket) {
void socket;
// TODO:
this.fastify.log.info('===== JOIN QUEUE BUTTON PRESSED =====');
}
}
// this value will be overriten