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,6 +1,6 @@
1
1
  {
2
2
  "name": "laplace-api",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "Client library for Laplace API for the US stock market and BIST (Istanbul stock market) fundamental financial data.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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: 1000,
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).unref();
268
+ }, delay);
269
+
270
+ if (typeof process !== "undefined") {
271
+ this.reconnectTimeout.unref();
272
+ }
268
273
  }
269
274
 
270
275
  subscribe(
@@ -1,2 +1,2 @@
1
- BASE_URL=https://api.finfree.app
2
- API_KEY=api-6fa6cefb-16df-4a19-8351-54f83c6bbe2f
1
+ BASE_URL=
2
+ API_KEY=