diff --git a/src/managers/socketManager.ts b/src/managers/socketManager.ts index 4c94d25..3558dd9 100644 --- a/src/managers/socketManager.ts +++ b/src/managers/socketManager.ts @@ -5,7 +5,6 @@ import Logger, { LoggerType } from '@/application/logger' import Storage from '@/application/storage' import type { TSocket, UUID } from '@/application/types' import { Authentication } from '@/middleware/authentication' -import type { Application } from 'express' import { Server as SocketServer } from 'socket.io' class SocketManager { @@ -15,7 +14,7 @@ class SocketManager { /** * Initialize Socket.IO server */ - public async boot(app: Application, http: HTTPServer): Promise { + public async boot(http: HTTPServer): Promise { this.io = new SocketServer(http) // Apply authentication middleware diff --git a/src/server.ts b/src/server.ts index e3c5f2a..7493d52 100644 --- a/src/server.ts +++ b/src/server.ts @@ -21,7 +21,7 @@ export class Server { // Initialize managers await Promise.all([ HttpManager.boot(HttpManager.getAppInstance()), - SocketManager.boot(HttpManager.getAppInstance(), HttpManager.getServerInstance()), + SocketManager.boot(HttpManager.getServerInstance()), QueueManager.boot(), UserManager.boot(), MapManager.boot(),