Add server variable to the event handlers.
This commit is contained in:
parent
c5e1621366
commit
c0e9efcc9f
16 changed files with 44 additions and 44 deletions
|
|
@ -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`);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue