This commit is contained in:
Theenoro
2022-05-20 09:54:28 +02:00
parent d521488087
commit 6ead5e4b10
4 changed files with 80 additions and 13 deletions

View File

@@ -17,5 +17,6 @@ export class Web{
})
app.use(express.static('static'));
app.listen(Config.WEB_SERVER.PORT);
this.app = app;
}
}
}

View File

@@ -22,5 +22,11 @@ export class WebSock {
ws.send('something');
});
this.wss = wss;
/*Storage.web.app.on('upgrade', (request, socket, head) => {
wss.handleUpgrade(request, socket, head, socket => {
wss.emit('connection', socket, request);
});
});*/
}
}