(tic-tac-toe): Erratum, it's the join/leave queue button
This commit is contained in:
parent
ca9b2a7320
commit
92eb73c508
5 changed files with 17 additions and 16 deletions
|
|
@ -28,7 +28,8 @@ export interface ClientToServer {
|
|||
gameMove: (up: GameMove) => void;
|
||||
keepalive: () => void;
|
||||
connectedToGame: (gameId: string) => void;
|
||||
requestNewGame: () => void;
|
||||
// TODO:
|
||||
joinQueueButton: () => void;
|
||||
};
|
||||
|
||||
export interface ServerToClient {
|
||||
|
|
|
|||
|
|
@ -48,8 +48,8 @@ export class StateI {
|
|||
socket.on('enqueue', () => this.enqueueUser(socket));
|
||||
socket.on('dequeue', () => this.dequeueUser(socket));
|
||||
socket.on('debugInfo', () => this.debugSocket(socket));
|
||||
// TODO
|
||||
socket.on('requestNewGame', () => this.requestNewGame(socket));
|
||||
// TODO:
|
||||
socket.on('joinQueueButton', () => this.joinQueueButton(socket));
|
||||
|
||||
socket.on('gameMove', (e) => this.gameMove(socket, e));
|
||||
socket.on('keepalive', () => this.keepAlive(socket));
|
||||
|
|
@ -205,11 +205,11 @@ export class StateI {
|
|||
game?.makeMove(socket.authUser.id, update.index);
|
||||
}
|
||||
|
||||
// TODO
|
||||
private requestNewGame(socket: SSocket) {
|
||||
// TODO:
|
||||
private joinQueueButton(socket: SSocket) {
|
||||
void socket;
|
||||
// TODO
|
||||
this.fastify.log.info('===== NEW GAME REQUESTED =====');
|
||||
// TODO:
|
||||
this.fastify.log.info('===== JOIN QUEUE BUTTON PRESSED =====');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue