import { Socket } from 'socket.io'; export class Player { socketId: string; socket: Socket; userName?: string; constructor(socket: Socket) { this.socket = socket; this.socketId = socket.id; } }