http-request-manager 18.15.29 → 18.15.31
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.
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "http-request-manager",
|
|
3
|
-
"version": "18.15.
|
|
3
|
+
"version": "18.15.31",
|
|
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,13 @@ declare class WebSocketManagerService {
|
|
|
941
943
|
private static lastOptions;
|
|
942
944
|
private static lastJwtToken;
|
|
943
945
|
private static retryCount;
|
|
944
|
-
private static
|
|
946
|
+
private static retryDelay;
|
|
947
|
+
private static retrySubscription;
|
|
948
|
+
private static maxRetries;
|
|
949
|
+
private static retryCountSubject;
|
|
950
|
+
retryCount$: Observable<number>;
|
|
951
|
+
private static maxRetriesSubject;
|
|
952
|
+
maxRetries$: Observable<number>;
|
|
945
953
|
private static messages;
|
|
946
954
|
messages$: Observable<any>;
|
|
947
955
|
private static connectionStatus;
|
|
@@ -1429,10 +1437,10 @@ declare class MessageTrackerService implements OnDestroy {
|
|
|
1429
1437
|
* Map<channel, retryCount>
|
|
1430
1438
|
*/
|
|
1431
1439
|
private gapRetryCount;
|
|
1432
|
-
/** Batch acknowledgment timer */
|
|
1433
|
-
private batchAckTimer;
|
|
1434
1440
|
/** Subscription to WebSocket messages */
|
|
1435
1441
|
private messagesSubscription;
|
|
1442
|
+
/** Subject to signal destroy for takeUntil */
|
|
1443
|
+
private destroy$;
|
|
1436
1444
|
/**
|
|
1437
1445
|
* Track channels we want to be subscribed to (survives disconnect/reconnect)
|
|
1438
1446
|
* This is separate from WebSocketManagerService.subscribedChannels which tracks
|
|
@@ -1457,14 +1465,6 @@ declare class MessageTrackerService implements OnDestroy {
|
|
|
1457
1465
|
* Queue message for batch acknowledgment
|
|
1458
1466
|
*/
|
|
1459
1467
|
private queueAck;
|
|
1460
|
-
/**
|
|
1461
|
-
* Start batch acknowledgment timer
|
|
1462
|
-
*/
|
|
1463
|
-
private startBatchAckTimer;
|
|
1464
|
-
/**
|
|
1465
|
-
* Stop batch acknowledgment timer
|
|
1466
|
-
*/
|
|
1467
|
-
private stopBatchAckTimer;
|
|
1468
1468
|
/**
|
|
1469
1469
|
* Send batch acknowledgments for all channels with pending acks
|
|
1470
1470
|
*/
|
|
@@ -1545,6 +1545,8 @@ declare class HTTPManagerService<T> extends RequestService {
|
|
|
1545
1545
|
connectionStatus$: Observable<boolean>;
|
|
1546
1546
|
messages$: Observable<any>;
|
|
1547
1547
|
subscribedChannels$: Observable<Set<string>>;
|
|
1548
|
+
retryCount$: Observable<number>;
|
|
1549
|
+
maxRetries$: Observable<number>;
|
|
1548
1550
|
private countdown;
|
|
1549
1551
|
countdown$: Observable<number>;
|
|
1550
1552
|
private error;
|
|
@@ -2019,6 +2021,7 @@ declare class LocalStorageSignalsManagerService {
|
|
|
2019
2021
|
defaultOptions: SettingOptions;
|
|
2020
2022
|
stateRetrieved: boolean;
|
|
2021
2023
|
encrypted: boolean;
|
|
2024
|
+
destroyRef: DestroyRef;
|
|
2022
2025
|
app: AppService;
|
|
2023
2026
|
utils: UtilsService;
|
|
2024
2027
|
objectMergerService: ObjectMergerService;
|
|
@@ -3319,8 +3322,8 @@ declare class RequestManagerWsDemoComponent implements OnInit {
|
|
|
3319
3322
|
user: any;
|
|
3320
3323
|
path: string[];
|
|
3321
3324
|
user$: rxjs.Observable<WSUser | null>;
|
|
3322
|
-
|
|
3323
|
-
|
|
3325
|
+
retryCount$: rxjs.Observable<number>;
|
|
3326
|
+
maxRetries$: rxjs.Observable<number>;
|
|
3324
3327
|
connectionStatus$: rxjs.Observable<boolean>;
|
|
3325
3328
|
data$: rxjs.Observable<any>;
|
|
3326
3329
|
isPending$: rxjs.Observable<boolean>;
|
|
Binary file
|