laplace-api 1.3.1 → 1.3.3
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/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
export interface BISTStockLiveData {
|
|
2
3
|
symbol: string;
|
|
3
4
|
cl: number; // Close
|
|
@@ -68,7 +69,7 @@ export class LivePriceWebSocketClient {
|
|
|
68
69
|
this.options = {
|
|
69
70
|
enableLogging: true,
|
|
70
71
|
reconnectAttempts: 5,
|
|
71
|
-
reconnectDelay:
|
|
72
|
+
reconnectDelay: 5000,
|
|
72
73
|
maxReconnectDelay: 30000,
|
|
73
74
|
...options,
|
|
74
75
|
};
|
|
@@ -264,7 +265,11 @@ export class LivePriceWebSocketClient {
|
|
|
264
265
|
} catch (error) {
|
|
265
266
|
this.attemptReconnect();
|
|
266
267
|
}
|
|
267
|
-
}, delay)
|
|
268
|
+
}, delay);
|
|
269
|
+
|
|
270
|
+
if (typeof process !== "undefined") {
|
|
271
|
+
this.reconnectTimeout.unref();
|
|
272
|
+
}
|
|
268
273
|
}
|
|
269
274
|
|
|
270
275
|
subscribe(
|
package/src/utilities/test.env
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
BASE_URL=
|
|
2
|
-
API_KEY=
|
|
1
|
+
BASE_URL=
|
|
2
|
+
API_KEY=
|