Add basic command handlers for all current events
This commit is contained in:
parent
98d4c25e7e
commit
e321f33a69
12 changed files with 49 additions and 0 deletions
|
|
@ -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`);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue