Compare commits

..

2 Commits

Author SHA1 Message Date
df45287026 1.0.48 2019-06-06 22:22:45 +02:00
b5b6ca81cf fix(core): update 2019-06-06 22:22:45 +02:00
5 changed files with 13 additions and 5 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: {}

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartuniverse",
"version": "1.0.47",
"version": "1.0.48",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartuniverse",
"version": "1.0.47",
"version": "1.0.48",
"private": false,
"description": "messaging service for your micro services",
"main": "dist/index.js",

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() {}
}