fix(core): update

This commit is contained in:
2019-01-31 02:52:18 +01:00
parent 57b37cb327
commit ac2a1559b0
13 changed files with 1179 additions and 284 deletions
+4 -2
View File
@@ -1,6 +1,6 @@
import * as plugins from './smartuniverse.plugins';
import { Handler, Route, Server } from 'smartexpress';
import { Handler, Route, Server } from '@pushrocks/smartexpress';
import { UniverseCache, UniverseChannel, UniverseMessage } from './';
import * as paths from './smartuniverse.paths';
@@ -69,7 +69,9 @@ export class Universe {
public async initServer(portArg: number | string) {
this.smartexpressServer = new plugins.smartexpress.Server({
cors: true,
defaultAnswer: `smartuniverse server ${this.universeVersion}`,
defaultAnswer: async () => {
return `smartuniverse server ${this.universeVersion}`;
},
forceSsl: false,
port: portArg
});