This commit is contained in:
2024-05-12 21:24:14 +02:00
parent c49a2563f8
commit 2f4ae43996
9 changed files with 100 additions and 28 deletions

View File

@ -55,8 +55,7 @@ export class Server
await api.addAuthRoutes(this.app);
// Load zone manager
const zoneManager = ZoneManager.getInstance();
await zoneManager.boot();
await ZoneManager.boot();
// Listen for socket connections
this.io.on('connection', this.handleConnection.bind(this));
@ -68,7 +67,7 @@ export class Server
* @private
*/
private async handleConnection(socket: Socket) {
const eventsPath = path.join(__dirname, 'events');
const eventsPath = path.join(__dirname, 'app', 'events');
try {
const files: string[] = await fs.promises.readdir(eventsPath);
for (const file of files) {