@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.
@@ -593,6 +593,8 @@ function disconnect() {
593
593
  if (cb.timeoutId) clearTimeout(cb.timeoutId);
594
594
  });
595
595
  connectionCallbacks.length = 0;
596
+ blockSubscribers.length = 0;
597
+ lastBlockHeader = null;
596
598
  }
597
599
  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;
598
600
  var init_network = __esm({