@ariva-mds/mds 2.16.0 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -84,7 +84,7 @@ class MdsConnection {
84
84
  const outer = this;
85
85
  // open-handler -> resend open requests from previous connection
86
86
  this.websocket.onopen = function () {
87
- outer.debug("websocket open, resending " + JSON.stringify(outer.waitingForReconnect));
87
+ outer.debug("websocket open, resending " + outer.waitingForReconnect.length + " items");
88
88
  outer.state.connectionOpened();
89
89
  // @ts-ignore
90
90
  for (const request of outer.waitingForReconnect) {
@@ -93,7 +93,7 @@ class MdsConnection {
93
93
  };
94
94
  // close handler -> store open requests for resending on reconnect
95
95
  this.websocket.onclose = function () {
96
- outer.debug("websocket closed, queuing " + JSON.stringify(outer.waitingForReconnect));
96
+ outer.debug("websocket closed, queuing " + outer.waitingForReconnect.length + " items");
97
97
  outer.state.connectionClosed();
98
98
  outer.waitingForReconnect = Array.from(outer.runningRequests.values());
99
99
  };
package/lib/esm/index.mjs CHANGED
@@ -82,7 +82,7 @@ export class MdsConnection {
82
82
  const outer = this;
83
83
  // open-handler -> resend open requests from previous connection
84
84
  this.websocket.onopen = function () {
85
- outer.debug("websocket open, resending " + JSON.stringify(outer.waitingForReconnect));
85
+ outer.debug("websocket open, resending " + outer.waitingForReconnect.length + " items");
86
86
  outer.state.connectionOpened();
87
87
  // @ts-ignore
88
88
  for (const request of outer.waitingForReconnect) {
@@ -91,7 +91,7 @@ export class MdsConnection {
91
91
  };
92
92
  // close handler -> store open requests for resending on reconnect
93
93
  this.websocket.onclose = function () {
94
- outer.debug("websocket closed, queuing " + JSON.stringify(outer.waitingForReconnect));
94
+ outer.debug("websocket closed, queuing " + outer.waitingForReconnect.length + " items");
95
95
  outer.state.connectionClosed();
96
96
  outer.waitingForReconnect = Array.from(outer.runningRequests.values());
97
97
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ariva-mds/mds",
3
- "version": "2.16.0",
3
+ "version": "2.17.0",
4
4
  "description": "Stock market data",
5
5
  "license": "MIT",
6
6
  "main": "./lib/cjs/index.js",