fix(core): update

This commit is contained in:
Philipp Kunz 2019-06-06 22:22:45 +02:00
parent dc80e3b48d
commit b5b6ca81cf
3 changed files with 11 additions and 3 deletions

4
.snyk Normal file
View File

@ -0,0 +1,4 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.13.5
ignore: {}
patch: {}

View File

@ -74,7 +74,7 @@ export class Universe {
this.smartexpressServer = new plugins.smartexpress.Server({
cors: true,
defaultAnswer: async () => {
return `smartuniverse server ${this.universeVersion}`;
return `smartuniverse server ${this.getUniverseVersion()}`;
},
forceSsl: false,
port: portArg
@ -97,8 +97,9 @@ export class Universe {
funcName: 'channelSubscription',
funcDef: (data) => {
(() => {
this.universeConnectionManager
})()
// TODO:
this.universeConnectionManager.addConnection();
})();
}
});

View File

@ -1,8 +1,11 @@
import * as plugins from './smartuniverse.plugins';
import { UniverseConnection } from './smartuniverse.classes.universeconnection';
/**
* manages connections to a universe
*/
export class UniverseConnectionManager {
public connectionMap = new plugins.lik.Objectmap<UniverseConnection>();
public addConnection() {}
}