SocketHandler.ts 355 Bytes
import { Socket } from "socket.io";
import { ConnectionMapper } from "./connection/ConnectionMapper";

export class SocketHandler {
  private connectionMapper: ConnectionMapper;

  constructor() {
    this.connectionMapper = new ConnectionMapper();
  }

  public connected(socket: Socket) {
    const connection = this.connectionMapper.get(socket);
  }
}