forked from noxious/server
Moved more socket logic into socket manager for easier DX
This commit is contained in:
@ -4,6 +4,7 @@ import { CommandRegistry } from '#application/console/commandRegistry'
|
||||
import { ConsolePrompt } from '#application/console/consolePrompt'
|
||||
import { LogReader } from '#application/console/logReader'
|
||||
import Logger, { LoggerType } from '#application/logger'
|
||||
import SocketManager from '#managers/socketManager'
|
||||
|
||||
export class ConsoleManager {
|
||||
private readonly logger = Logger.type(LoggerType.COMMAND)
|
||||
@ -19,8 +20,8 @@ export class ConsoleManager {
|
||||
this.logReader = new LogReader(process.cwd())
|
||||
}
|
||||
|
||||
public async boot(io: Server): Promise<void> {
|
||||
this.io = io
|
||||
public async boot(): Promise<void> {
|
||||
this.io = SocketManager.getIO()
|
||||
|
||||
await this.registry.loadCommands()
|
||||
this.logReader.start()
|
||||
|
Reference in New Issue
Block a user