Compare commits

...

5 Commits

Author SHA1 Message Date
57b37cb327 1.0.24 2019-01-30 11:01:49 +01:00
8b17e814cc fix(dependencies): update 2019-01-30 11:01:48 +01:00
f4b8cde347 fix(dependencies): update 2019-01-30 10:56:31 +01:00
3189d4d274 1.0.23 2018-05-30 16:34:07 +02:00
c2d134a6ea fix(websocket): switch to all websocket infrastructure 2018-05-30 16:34:06 +02:00
4 changed files with 996 additions and 1013 deletions

1956
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartuniverse", "name": "@pushrocks/smartuniverse",
"version": "1.0.22", "version": "1.0.24",
"private": true, "private": true,
"description": "messaging service for your micro services", "description": "messaging service for your micro services",
"main": "dist/index.js", "main": "dist/index.js",
@ -8,29 +8,27 @@
"author": "Lossless GmbH", "author": "Lossless GmbH",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"test": "(ts-node -O '{\"lib\": [ \"es2015\" ]}' test/test.ts)", "test": "(tstest test/)",
"build": "(npmts)", "build": "(npmts)",
"format": "(gitzone format)" "format": "(gitzone format)"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^9.6.18", "@pushrocks/tapbundle": "^3.0.7",
"tapbundle": "^2.0.0", "@types/node": "^10.12.19"
"ts-node": "^6.0.5",
"typescript": "^2.8.3"
}, },
"peerDependencies": { "peerDependencies": {
"rxjs": "*" "rxjs": "*"
}, },
"dependencies": { "dependencies": {
"lik": "^2.0.5", "@pushrocks/lik": "^3.0.4",
"nodehash": "^1.0.4", "@pushrocks/smartdelay": "^2.0.2",
"smartdelay": "^1.0.4", "@pushrocks/smartexpress": "^3.0.10",
"smartexpress": "^1.0.21", "@pushrocks/smartfile": "^6.0.12",
"smartfile": "^4.2.28", "@pushrocks/smarthash": "^2.0.4",
"smartq": "^1.1.8", "@pushrocks/smartpromise": "^2.0.5",
"smartrequest": "^1.0.8", "@pushrocks/smartrequest": "^1.0.8",
"smartrx": "^1.0.5", "@pushrocks/smartrx": "^2.0.3",
"smartsocket": "^1.1.19", "@pushrocks/smartsocket": "^1.1.24",
"smarttime": "^2.0.0" "@pushrocks/smarttime": "^3.0.5"
} }
} }

View File

@ -79,6 +79,19 @@ export class Universe {
port: 12345 // fix this within smartsocket port: 12345 // fix this within smartsocket
}); });
const ClientRole = new plugins.smartsocket.SocketRole({
name: 'clientuniverse',
passwordHash: 'clientuniverse' // authentication happens on another level
});
this.smartsocket.addSocketRoles([ClientRole]);
const SubscriptionSocketFunction = new plugins.smartsocket.SocketFunction({
allowedRoles: [ClientRole],
funcName: 'channelSubscription',
funcDef: () => {}
});
this.smartsocket.setExternalServer('express', this.smartexpressServer as any); this.smartsocket.setExternalServer('express', this.smartexpressServer as any);
// should work with express as well // should work with express as well
this.smartsocket.start(); this.smartsocket.start();

View File

@ -1,12 +1,6 @@
{ {
"extends": [ "extends": ["tslint:latest", "tslint-config-prettier"],
"tslint:latest",
"tslint-config-prettier"
],
"rules": { "rules": {
"semicolon": [ "semicolon": [true, "always"]
true,
"always"
]
} }
} }