@resolveio/server-lib 20.12.49 → 20.12.51
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/fixtures/init.js +1 -126
- package/fixtures/init.js.map +1 -1
- package/managers/mongo.manager.d.ts +1 -0
- package/managers/mongo.manager.js +37 -9
- package/managers/mongo.manager.js.map +1 -1
- package/managers/subscription.manager.d.ts +17 -0
- package/managers/subscription.manager.js +353 -46
- package/managers/subscription.manager.js.map +1 -1
- package/methods/report-builder.js.map +1 -1
- package/methods.ts +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ export declare class SubscriptionManager {
|
|
|
9
9
|
private _subscriptions;
|
|
10
10
|
private _wss;
|
|
11
11
|
private _loggedInUsers;
|
|
12
|
+
private _lastRouteBySocket;
|
|
12
13
|
private _mongoQueue;
|
|
13
14
|
private _mongoQueueId;
|
|
14
15
|
private _oplog$;
|
|
@@ -31,6 +32,14 @@ export declare class SubscriptionManager {
|
|
|
31
32
|
private _debugSendQueueHits;
|
|
32
33
|
private _debugRemoveCacheHits;
|
|
33
34
|
private _oplogRetryCount;
|
|
35
|
+
private _lastResumeToken;
|
|
36
|
+
private _lastResumeTokenSaveMs;
|
|
37
|
+
private _resumeTokenSavePromise;
|
|
38
|
+
private _resumeTokenSaveForcePending;
|
|
39
|
+
private _fullResyncPromise;
|
|
40
|
+
private readonly RESUME_TOKEN_COLLECTION;
|
|
41
|
+
private readonly RESUME_TOKEN_DOC_ID;
|
|
42
|
+
private readonly RESUME_TOKEN_SAVE_INTERVAL_MS;
|
|
34
43
|
private latencyBuffer;
|
|
35
44
|
private readonly LATENCY_UPDATE_INTERVAL;
|
|
36
45
|
private readonly LATENCY_UPDATE_THRESHOLD_MS;
|
|
@@ -47,6 +56,8 @@ export declare class SubscriptionManager {
|
|
|
47
56
|
private _executeInvalidation;
|
|
48
57
|
private subscriptionReferencesCollection;
|
|
49
58
|
private delay;
|
|
59
|
+
private getMessageDateMs;
|
|
60
|
+
private isStaleRouteMessage;
|
|
50
61
|
private sendDataToAllWithRetry;
|
|
51
62
|
private sendDataToOneWithRetry;
|
|
52
63
|
publications(method: SubscriptionModel): void;
|
|
@@ -59,6 +70,12 @@ export declare class SubscriptionManager {
|
|
|
59
70
|
getActiveSubscriptions(): ActiveSubscriptionModel[];
|
|
60
71
|
private getPublicationCollections;
|
|
61
72
|
private getWatchedDatabases;
|
|
73
|
+
private loadResumeToken;
|
|
74
|
+
private saveResumeToken;
|
|
75
|
+
private clearResumeToken;
|
|
76
|
+
private queueResumeTokenSave;
|
|
77
|
+
private queueFullResync;
|
|
78
|
+
private fullResyncSubscriptions;
|
|
62
79
|
private tailOpLog;
|
|
63
80
|
private processSubscription;
|
|
64
81
|
private sendDataToOne;
|