@drift-labs/sdk 2.48.0-beta.23 → 2.48.0-beta.24

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/VERSION CHANGED
@@ -1 +1 @@
1
- 2.48.0-beta.23
1
+ 2.48.0-beta.24
@@ -39,6 +39,10 @@ class WebSocketLogProvider {
39
39
  this.receivingData = true;
40
40
  clearTimeout(this.timeoutId);
41
41
  this.setTimeout();
42
+ if (this.reconnectAttempts > 0) {
43
+ console.log('Resetting reconnect attempts to 0');
44
+ }
45
+ this.reconnectAttempts = 0;
42
46
  }
43
47
  callback(logs.signature, ctx.slot, logs.logs, undefined);
44
48
  }, this.commitment);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.48.0-beta.23",
3
+ "version": "2.48.0-beta.24",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -50,6 +50,10 @@ export class WebSocketLogProvider implements LogProvider {
50
50
  this.receivingData = true;
51
51
  clearTimeout(this.timeoutId);
52
52
  this.setTimeout();
53
+ if (this.reconnectAttempts > 0) {
54
+ console.log('Resetting reconnect attempts to 0');
55
+ }
56
+ this.reconnectAttempts = 0;
53
57
  }
54
58
  callback(logs.signature, ctx.slot, logs.logs, undefined);
55
59
  },