Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ombori/grid-signals

Package Overview
Dependencies
Maintainers
17
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ombori/grid-signals - npm Package Compare versions

Comparing version 2.218.6 to 2.229.6

19

CHANGELOG.md

@@ -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 @@

32

dist/utils/signal-r.js

@@ -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 {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc