fix(core): update

This commit is contained in:
2022-01-20 16:50:25 +01:00
parent 608669ec44
commit 7c98e19988
5 changed files with 73 additions and 60 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ export class Smartsocket {
*/
public async start() {
const socketIoModule = this.smartenv.getSafeNodeModule('socket.io');
this.io = socketIoModule(this.socketServer.getServerForSocketIo());
this.io = socketIoModule(await this.socketServer.getServerForSocketIo());
await this.socketServer.start();
this.io.on('connection', (socketArg) => {
this._handleSocketConnection(socketArg);