From 59cbc343cc7a08e09828c1d1747a194c193493a6 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sun, 3 Nov 2019 20:23:15 +0100 Subject: [PATCH] fix(core): update --- package-lock.json | 24 ++++++++++++--------- package.json | 1 + ts/smartsocket.classes.smartsocketclient.ts | 7 +++++- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 61655f2..3a1dea0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -495,20 +495,23 @@ } }, "@pushrocks/smartrx": { - "version": "2.0.3", - "resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartrx/-/smartrx-2.0.3.tgz", - "integrity": "sha512-OWxagu+CBdPaq76AIg91hJyrNhDTlEpesj01ooWCeVIaLY3G7yvFkqHsEKNOwPUG1LzCWmjq1l1dHQx9p2vJ9A==", + "version": "2.0.5", + "resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartrx/-/smartrx-2.0.5.tgz", + "integrity": "sha512-BOlIJmnCO8pxqu9f18D9UV5rIsyrmKeK/mWNMiAe/NH2OTeRPNLpgmhZBkXSKNVD8tSsD8aazs4BcACgYOg1FQ==", "requires": { - "@pushrocks/lik": "^3.0.2", + "@pushrocks/lik": "^3.0.11", "@pushrocks/smartevent": "^2.0.3", - "@pushrocks/smartpromise": "^2.0.5", - "rxjs": "^6.3.3" + "@pushrocks/smartpromise": "^3.0.2", + "rxjs": "^6.5.3" }, "dependencies": { - "@pushrocks/smartpromise": { - "version": "2.0.5", - "resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartpromise/-/smartpromise-2.0.5.tgz", - "integrity": "sha512-9j/chLtIiNkR0MDw7Mpxg9slxAVvAQwUZuiaPYX5KpHdKxQaHLI1VZ8IN0vPhwlfgNO4i4vGXV0wB8BvSDj03g==" + "rxjs": { + "version": "6.5.3", + "resolved": "https://verdaccio.lossless.one/rxjs/-/rxjs-6.5.3.tgz", + "integrity": "sha512-wuYsAYYFdWTAnAaPoKGNhfpWwKZbJW+HgAJ+mImp+Epl7BG8oNWBCTyRM8gba9k4lk8BgWdoYm21Mo/RYhhbgA==", + "requires": { + "tslib": "^1.9.0" + } } } }, @@ -2657,6 +2660,7 @@ "version": "6.3.3", "resolved": "https://verdaccio.lossless.one/rxjs/-/rxjs-6.3.3.tgz", "integrity": "sha512-JTWmoY9tWCs7zvIk/CvRjhjGaOd+OVBM987mxFo+OW66cGpdKjZcpmc74ES1sB//7Kl/PAe8+wEakuhG4pcgOw==", + "dev": true, "requires": { "tslib": "^1.9.0" } diff --git a/package.json b/package.json index be9c7e3..2303c58 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "@pushrocks/smarthash": "^2.0.6", "@pushrocks/smartlog": "^2.0.21", "@pushrocks/smartpromise": "^3.0.6", + "@pushrocks/smartrx": "^2.0.5", "@pushrocks/smartunique": "^3.0.1", "@types/socket.io": "^2.1.4", "@types/socket.io-client": "^1.4.32", diff --git a/ts/smartsocket.classes.smartsocketclient.ts b/ts/smartsocket.classes.smartsocketclient.ts index 43be291..7d2ba04 100644 --- a/ts/smartsocket.classes.smartsocketclient.ts +++ b/ts/smartsocket.classes.smartsocketclient.ts @@ -23,6 +23,8 @@ export class SmartsocketClient { public serverUrl: string; public serverPort: number; + // public eventSubject = new plugins.smart + public socketFunctions = new plugins.lik.Objectmap>(); public socketRequests = new plugins.lik.Objectmap>(); public socketRoles = new plugins.lik.Objectmap(); @@ -55,7 +57,10 @@ export class SmartsocketClient { role: this.socketRole, side: 'client', smartsocketHost: this, - socket: plugins.socketIoClient(socketUrl, { multiplex: false }) + socket: plugins.socketIoClient(socketUrl, { + multiplex: false, + reconnectionAttempts: 5, + }) }); this.socketConnection.socket.on('requestAuth', () => { plugins.smartlog.defaultLogger.log('info', 'server requested authentication');