fix(core): update

This commit is contained in:
2019-09-01 18:22:44 +02:00
parent 37cf4a91f4
commit 9397d89cf5
3 changed files with 71 additions and 70 deletions

View File

@ -79,6 +79,7 @@ export class Universe {
port: portArg
});
} else {
console.log('Universe is using externally supplied server');
this.smartexpressServer = this.options.externalServer;
}
@ -160,7 +161,7 @@ export class Universe {
this.smartsocket.addSocketFunction(socketFunctionProcessMessage);
// add smartsocket to the running smartexpress app
this.smartsocket.setExternalServer('smartexpress', this.smartexpressServer as any);
await this.smartsocket.setExternalServer('smartexpress', this.smartexpressServer);
// start everything
if (!this.options.externalServer) {
await this.smartexpressServer.start();