http-request-manager 18.15.29 → 18.15.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "http-request-manager",
3
- "version": "18.15.29",
3
+ "version": "18.15.32",
4
4
  "homepage": "https://wavecoders.ca",
5
5
  "author": "Mike Bonifacio <wavecoders@gmail.com> (http://wavecoders@gmail.com/)",
6
6
  "description": "This is an Angular Module containing Components/Services using Material",
@@ -1,7 +1,7 @@
1
1
  import * as rxjs from 'rxjs';
2
2
  import { Observable, Subscription, BehaviorSubject, OperatorFunction } from 'rxjs';
3
3
  import * as i0 from '@angular/core';
4
- import { InjectionToken, OnDestroy, Injector, OnInit, EventEmitter, ModuleWithProviders } from '@angular/core';
4
+ import { InjectionToken, OnDestroy, Injector, DestroyRef, OnInit, EventEmitter, ModuleWithProviders } from '@angular/core';
5
5
  import { ComponentStore } from '@ngrx/component-store';
6
6
  import { HttpClient, HttpHeaders, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
7
7
  import * as http_request_manager from 'http-request-manager';
@@ -696,6 +696,8 @@ declare class HTTPManagerStateService<T extends {
696
696
  private ownSessionId;
697
697
  wsOptions: WSOptions;
698
698
  connectionStatus$: Observable<boolean>;
699
+ wsRetryCount$: Observable<number>;
700
+ wsMaxRetries$: Observable<number>;
699
701
  constructor(apiOptions: ApiRequest, dataType: DataType | undefined, database?: DatabaseStorage);
700
702
  /**
701
703
  * Add appropriate prefix to a channel name if not already present
@@ -941,7 +943,14 @@ declare class WebSocketManagerService {
941
943
  private static lastOptions;
942
944
  private static lastJwtToken;
943
945
  private static retryCount;
944
- private static jwtInvalidClose;
946
+ private static retryDelay;
947
+ private static retrySubscription;
948
+ private static maxRetries;
949
+ private static connectionReadyNotified;
950
+ private static retryCountSubject;
951
+ retryCount$: Observable<number>;
952
+ private static maxRetriesSubject;
953
+ maxRetries$: Observable<number>;
945
954
  private static messages;
946
955
  messages$: Observable<any>;
947
956
  private static connectionStatus;
@@ -1429,10 +1438,10 @@ declare class MessageTrackerService implements OnDestroy {
1429
1438
  * Map<channel, retryCount>
1430
1439
  */
1431
1440
  private gapRetryCount;
1432
- /** Batch acknowledgment timer */
1433
- private batchAckTimer;
1434
1441
  /** Subscription to WebSocket messages */
1435
1442
  private messagesSubscription;
1443
+ /** Subject to signal destroy for takeUntil */
1444
+ private destroy$;
1436
1445
  /**
1437
1446
  * Track channels we want to be subscribed to (survives disconnect/reconnect)
1438
1447
  * This is separate from WebSocketManagerService.subscribedChannels which tracks
@@ -1457,14 +1466,6 @@ declare class MessageTrackerService implements OnDestroy {
1457
1466
  * Queue message for batch acknowledgment
1458
1467
  */
1459
1468
  private queueAck;
1460
- /**
1461
- * Start batch acknowledgment timer
1462
- */
1463
- private startBatchAckTimer;
1464
- /**
1465
- * Stop batch acknowledgment timer
1466
- */
1467
- private stopBatchAckTimer;
1468
1469
  /**
1469
1470
  * Send batch acknowledgments for all channels with pending acks
1470
1471
  */
@@ -1545,6 +1546,8 @@ declare class HTTPManagerService<T> extends RequestService {
1545
1546
  connectionStatus$: Observable<boolean>;
1546
1547
  messages$: Observable<any>;
1547
1548
  subscribedChannels$: Observable<Set<string>>;
1549
+ retryCount$: Observable<number>;
1550
+ maxRetries$: Observable<number>;
1548
1551
  private countdown;
1549
1552
  countdown$: Observable<number>;
1550
1553
  private error;
@@ -2019,6 +2022,7 @@ declare class LocalStorageSignalsManagerService {
2019
2022
  defaultOptions: SettingOptions;
2020
2023
  stateRetrieved: boolean;
2021
2024
  encrypted: boolean;
2025
+ destroyRef: DestroyRef;
2022
2026
  app: AppService;
2023
2027
  utils: UtilsService;
2024
2028
  objectMergerService: ObjectMergerService;
@@ -3319,8 +3323,8 @@ declare class RequestManagerWsDemoComponent implements OnInit {
3319
3323
  user: any;
3320
3324
  path: string[];
3321
3325
  user$: rxjs.Observable<WSUser | null>;
3322
- attempts$: rxjs.Observable<number>;
3323
- nextRetry$: rxjs.Observable<number>;
3326
+ retryCount$: rxjs.Observable<number>;
3327
+ maxRetries$: rxjs.Observable<number>;
3324
3328
  connectionStatus$: rxjs.Observable<boolean>;
3325
3329
  data$: rxjs.Observable<any>;
3326
3330
  isPending$: rxjs.Observable<boolean>;
Binary file