@evergis/api 3.0.129 → 3.0.130
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/dist/Api.d.ts +2 -1
- package/dist/api.cjs.development.js +28 -3
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +28 -3
- package/dist/api.esm.js.map +1 -1
- package/dist/services/Notification.d.ts +4 -1
- package/package.json +2 -2
|
@@ -20,14 +20,17 @@ export declare class Notification extends NotificationService {
|
|
|
20
20
|
private api;
|
|
21
21
|
private readonly MAX_WS_RECONNECT_TRIES;
|
|
22
22
|
private readonly emitter;
|
|
23
|
+
private readonly keepAlive;
|
|
23
24
|
private ws?;
|
|
24
25
|
private wsUrl?;
|
|
25
26
|
private reconnectTries;
|
|
26
27
|
private subscriptions;
|
|
28
|
+
private keepAliveTimeout?;
|
|
27
29
|
private _connectStatus;
|
|
28
30
|
get connectStatus(): ConnectionStatus;
|
|
29
31
|
set connectStatus(connectStatus: ConnectionStatus);
|
|
30
|
-
|
|
32
|
+
get currentWs(): WebSocket | undefined;
|
|
33
|
+
constructor(http: IHttpClient, api: Api, keepAlive?: boolean);
|
|
31
34
|
on<Data, Result>(tag: string, handler: NotificationHandler<Data, Result>): void;
|
|
32
35
|
off<Data, Result>(tag: string, handler: NotificationHandler<Data, Result>): void;
|
|
33
36
|
subscribe(tag: string): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.0.
|
|
2
|
+
"version": "3.0.130",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"nanoid": "^3.1.23",
|
|
44
44
|
"query-string": "^6.7.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "171c1fbe9646fe53f4b39abeab336192f7b369ae"
|
|
47
47
|
}
|