Add basic command handlers for all current events

This commit is contained in:
Oliver-Akins 2020-09-28 23:09:16 -06:00
parent 98d4c25e7e
commit e321f33a69
12 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,5 @@
import { Socket } from 'socket.io';
export const JoinGame = (socket: Socket, data: JoinGame) => {
console.log(`User: ${data.username} (${data.game_code})`);
console.log(`Joining a game`);
};