diff --git a/examples/preact/package-lock.json b/examples/preact/package-lock.json index f529438..7ca119d 100644 --- a/examples/preact/package-lock.json +++ b/examples/preact/package-lock.json @@ -18,7 +18,7 @@ }, "../..": { "name": "@harnessio/ff-javascript-client-sdk", - "version": "1.31.3", + "version": "1.31.4", "license": "Apache-2.0", "dependencies": { "jwt-decode": "^3.1.2", diff --git a/examples/react-redux/package-lock.json b/examples/react-redux/package-lock.json index 65a84cb..6b14dbe 100644 --- a/examples/react-redux/package-lock.json +++ b/examples/react-redux/package-lock.json @@ -27,7 +27,7 @@ }, "../..": { "name": "@harnessio/ff-javascript-client-sdk", - "version": "1.31.3", + "version": "1.31.4", "license": "Apache-2.0", "dependencies": { "jwt-decode": "^3.1.2", diff --git a/package-lock.json b/package-lock.json index 4140bef..202ca0e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@harnessio/ff-javascript-client-sdk", - "version": "1.31.3", + "version": "1.31.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@harnessio/ff-javascript-client-sdk", - "version": "1.31.3", + "version": "1.31.4", "license": "Apache-2.0", "dependencies": { "jwt-decode": "^3.1.2", diff --git a/package.json b/package.json index aa8e1ee..0a49e7b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@harnessio/ff-javascript-client-sdk", - "version": "1.31.3", + "version": "1.31.4", "author": "Harness", "license": "Apache-2.0", "main": "dist/sdk.cjs.js", diff --git a/src/index.ts b/src/index.ts index 547e19b..3e37fdc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -23,7 +23,7 @@ import { getVariation } from './variation' import Poller from './poller' import { createCacheIdSeed, getCache } from './cache' -const SDK_VERSION = '1.31.3' +const SDK_VERSION = '1.31.4' const SDK_INFO = `Javascript ${SDK_VERSION} Client` const METRICS_VALID_COUNT_INTERVAL = 500 diff --git a/src/stream.ts b/src/stream.ts index 94fc528..571e26c 100644 --- a/src/stream.ts +++ b/src/stream.ts @@ -53,7 +53,7 @@ export class Streamer { const onDisconnect = () => { clearInterval(this.readTimeoutCheckerId) - const reconnectDelayMs = getRandom(1000, 10000) + const reconnectDelayMs = getRandom(1000, 30000) this.reconnectAttempts++ this.logDebugMessage('Stream disconnected, will reconnect in ' + reconnectDelayMs + 'ms') if (!this.disconnectEventEmitted) {