applesauce-relay 6.2.0 → 6.2.1

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.
Files changed (2) hide show
  1. package/dist/relay.js +4 -0
  2. package/package.json +1 -1
package/dist/relay.js CHANGED
@@ -896,6 +896,10 @@ export class Relay {
896
896
  // Mark as disconnected since the close$ watcher has been torn down
897
897
  if (this.connected$.value)
898
898
  this.connected$.next(false);
899
+ // Terminate the watchTower source: flip ready to false (trips the startReconnectTimer guard)
900
+ // and complete it so a subscriber still holding the watchTower can't re-arm reconnect on teardown
901
+ this._ready$.next(false);
902
+ this._ready$.complete();
899
903
  // Finally close the underlying socket
900
904
  this.socket.unsubscribe();
901
905
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "applesauce-relay",
3
- "version": "6.2.0",
3
+ "version": "6.2.1",
4
4
  "description": "nostr relay communication framework built on rxjs",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",