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

View File

@ -79,6 +79,19 @@ export class Universe {
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);
// should work with express as well
this.smartsocket.start();

View File

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