Add server variable to the event handlers.

This commit is contained in:
Oliver-Akins 2020-10-08 21:30:39 -06:00
parent c5e1621366
commit c0e9efcc9f
16 changed files with 44 additions and 44 deletions

View file

@ -1,4 +1,4 @@
import { Socket } from 'socket.io';
export const ExecutePlayer = (socket: Socket, data: ExecutePlayer) => {
import { Server, Socket } from 'socket.io';
export const ExecutePlayer = (io: Server, socket: Socket, data: ExecutePlayer) => {
console.log(`Killing a player`);
};