@unicitylabs/sphere-sdk 0.4.8 → 0.4.9

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/dist/index.js CHANGED
@@ -646,6 +646,8 @@ function disconnect() {
646
646
  if (cb.timeoutId) clearTimeout(cb.timeoutId);
647
647
  });
648
648
  connectionCallbacks.length = 0;
649
+ blockSubscribers.length = 0;
650
+ lastBlockHeader = null;
649
651
  }
650
652
  var DEFAULT_ENDPOINT, ws, isConnected, isConnecting, requestId, intentionalClose, reconnectAttempts, isBlockSubscribed, lastBlockHeader, pending, blockSubscribers, connectionCallbacks, MAX_RECONNECT_ATTEMPTS, BASE_DELAY, MAX_DELAY, RPC_TIMEOUT, CONNECTION_TIMEOUT;
651
653
  var init_network = __esm({