Minor improvement
This commit is contained in:
parent
22b776ef0f
commit
b508370eec
@ -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<void> {
|
||||
public async boot(http: HTTPServer): Promise<void> {
|
||||
this.io = new SocketServer(http)
|
||||
|
||||
// Apply authentication middleware
|
||||
|
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user