@resolveio/server-lib 9.7.7 → 9.7.9

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.
@@ -1,5 +1,6 @@
1
1
  import { SubscriptionModel } from '../models/subscription.model';
2
2
  import * as WebSocket from 'ws';
3
+ import { LoggedInUserModel } from '../models/logged-in-users.model';
3
4
  export declare class SubscriptionManager {
4
5
  private _mainServer;
5
6
  private _publications;
@@ -16,15 +17,13 @@ export declare class SubscriptionManager {
16
17
  private serverConfig;
17
18
  private _heapStats;
18
19
  private _heapLimit;
19
- private currentPerfomanceMonitor;
20
- private idPerformance;
21
- private performanceThread;
22
20
  constructor(mainServer: any, wss: WebSocket.Server, serverConfig: any);
23
21
  private addToQueue;
24
22
  invalidatePubsCache(collection: any, type: any): void;
25
23
  publications(method: SubscriptionModel): void;
26
24
  loggedInLatency(ws: WebSocket): Promise<void>;
27
25
  subscribe(messageDate: Date, ws: WebSocket, messageId: number, publication: string, ...subscriptionData: any[]): Promise<void>;
26
+ ensureLoggedInUser(id_ws: string): Promise<LoggedInUserModel>;
28
27
  unsubscribe(messageDate: Date, ws: WebSocket, messageId: number, publication: string, ...subscriptionData: any[]): Promise<void>;
29
28
  unsubscribeAll(ws: WebSocket): Promise<void>;
30
29
  private getPublicationCollections;