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.
- package/dist/relay.js +4 -0
- 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
|
}
|