@truenas/api-client 6.0.2 → 6.0.3

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.
@@ -3123,16 +3123,11 @@ var TrueNasConnection = class {
3123
3123
  rxjs.catchError(() => rxjs.EMPTY)
3124
3124
  ))
3125
3125
  );
3126
- rxjs.combineLatest([
3127
- rxjs.interval(twentySeconds),
3128
- this.ws$
3129
- ]).pipe(
3126
+ this.ws$.pipe(
3127
+ rxjs.switchMap((ws) => ws ? rxjs.interval(twentySeconds).pipe(rxjs.map(() => ws)) : rxjs.EMPTY),
3130
3128
  rxjs.takeUntil(this.closeConnection)
3131
- ).subscribe(([, ws]) => {
3132
- if (ws) {
3133
- const pingMessage = createJsonRpcMessage("core.ping");
3134
- ws.next(pingMessage);
3135
- }
3129
+ ).subscribe((ws) => {
3130
+ ws.next(createJsonRpcMessage("core.ping"));
3136
3131
  });
3137
3132
  this.opened$.subscribe((val) => this.opened.next(val));
3138
3133
  this.closed$.subscribe(() => this.closed.next());
@@ -4247,5 +4242,5 @@ exports.v25_10_4_exports = v25_10_4_exports;
4247
4242
  exports.v25_10_5_exports = v25_10_5_exports;
4248
4243
  exports.v26_0_0_exports = v26_0_0_exports;
4249
4244
  exports.v27_0_0_exports = v27_0_0_exports;
4250
- //# sourceMappingURL=chunk-PQIVBXN3.cjs.map
4251
- //# sourceMappingURL=chunk-PQIVBXN3.cjs.map
4245
+ //# sourceMappingURL=chunk-6PF34AWT.cjs.map
4246
+ //# sourceMappingURL=chunk-6PF34AWT.cjs.map