@ombori/grid-signals
Advanced tools
Comparing version 2.218.6 to 2.229.6
@@ -6,2 +6,21 @@ # Change Log | ||
## [2.229.6](https://github.com/ombori/gridapp/compare/v2.229.5...v2.229.6) (2022-09-29) | ||
**Note:** Version bump only for package @ombori/grid-signals | ||
## [2.229.3](https://github.com/ombori/gridapp/compare/v2.229.2...v2.229.3) (2022-09-29) | ||
### Bug Fixes | ||
* grid signals subscription disconnected retries ([e0446b2](https://github.com/ombori/gridapp/commit/e0446b20d61792d849d4bd672cd6ec90ecfa78bf)) | ||
## [2.218.6](https://github.com/ombori/gridapp/compare/v2.218.5...v2.218.6) (2022-07-06) | ||
@@ -8,0 +27,0 @@ |
@@ -40,10 +40,25 @@ "use strict"; | ||
.build(); | ||
connection.onclose(() => { | ||
console.log(`${name} signalR disconnected`); | ||
const start = () => __awaiter(this, void 0, void 0, function* () { | ||
console.log(`${name} starting signalR`); | ||
if (!isStopped) { | ||
setTimeout(function () { | ||
connection.start(); | ||
}, 5000); | ||
yield connection | ||
.start() | ||
.then((res) => { | ||
console.log(`${name} signalR connection has started`); | ||
}) | ||
.catch((err) => { | ||
console.error(err); | ||
console.log(`${name} error encountered while starting signalR. Retrying in 5 seconds`); | ||
setTimeout(() => { | ||
start(); | ||
}, 5000); | ||
}); | ||
} | ||
}); | ||
connection.onclose(() => { | ||
console.log(`${name} signalR disconnected`); | ||
setTimeout(function () { | ||
start(); | ||
}, 5000); | ||
}); | ||
connection.onreconnecting((err) => console.log(`${name} signalR err reconnecting `, err)); | ||
@@ -54,8 +69,3 @@ connection.on(defaultMethodNameToListen, (message) => { | ||
}); | ||
yield connection | ||
.start() | ||
.then((res) => { | ||
console.log(`${name} signalR connection has started`); | ||
}) | ||
.catch(console.error); | ||
start(); | ||
return { | ||
@@ -62,0 +72,0 @@ stop() { |
{ | ||
"name": "@ombori/grid-signals", | ||
"version": "2.218.6", | ||
"version": "2.229.6", | ||
"main": "dist/index.js", | ||
@@ -35,3 +35,3 @@ "scripts": { | ||
}, | ||
"gitHead": "15dea1a6f323896f00dba9f06b44eb941627b7f3" | ||
"gitHead": "83b69e74de438d2662006d51c57488b23fcb885b" | ||
} |
@@ -25,10 +25,27 @@ import * as signalR from '@microsoft/signalr'; | ||
const start = async () => { | ||
console.log(`${name} starting signalR`); | ||
if (!isStopped) { | ||
await connection | ||
.start() | ||
.then((res) => { | ||
console.log(`${name} signalR connection has started`); | ||
}) | ||
.catch((err) => { | ||
console.error(err); | ||
console.log( | ||
`${name} error encountered while starting signalR. Retrying in 5 seconds`, | ||
); | ||
setTimeout(() => { | ||
start(); | ||
}, 5000); | ||
}); | ||
} | ||
}; | ||
connection.onclose(() => { | ||
console.log(`${name} signalR disconnected`); | ||
if (!isStopped) { | ||
setTimeout(function() { | ||
connection.start(); | ||
}, 5000); | ||
} | ||
setTimeout(function () { | ||
start(); | ||
}, 5000); | ||
}); | ||
@@ -45,8 +62,3 @@ | ||
await connection | ||
.start() | ||
.then((res) => { | ||
console.log(`${name} signalR connection has started`); | ||
}) | ||
.catch(console.error); | ||
start(); | ||
@@ -53,0 +65,0 @@ return { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
145992
3555