@genesislcap/foundation-comms 14.185.0 → 14.186.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/dts/connect/connect.d.ts +1 -0
- package/dist/dts/connect/connect.d.ts.map +1 -1
- package/dist/dts/connect/connect.events.d.ts +28 -2
- package/dist/dts/connect/connect.events.d.ts.map +1 -1
- package/dist/dts/connect/connect.types.d.ts +1 -1
- package/dist/dts/connect/connect.types.d.ts.map +1 -1
- package/dist/dts/connect/http.connect.d.ts.map +1 -1
- package/dist/dts/connect/index.d.ts +1 -0
- package/dist/dts/connect/index.d.ts.map +1 -1
- package/dist/dts/connect/message.d.ts +6 -2
- package/dist/dts/connect/message.d.ts.map +1 -1
- package/dist/dts/connect/socket.d.ts +3 -56
- package/dist/dts/connect/socket.d.ts.map +1 -1
- package/dist/dts/connect/socket.types.d.ts +57 -0
- package/dist/dts/connect/socket.types.d.ts.map +1 -0
- package/dist/dts/networkMonitor/service.d.ts.map +1 -1
- package/dist/esm/connect/connect.events.js +21 -2
- package/dist/esm/connect/connect.js +16 -4
- package/dist/esm/connect/http.connect.js +1 -0
- package/dist/esm/connect/index.js +1 -0
- package/dist/esm/connect/message.js +3 -2
- package/dist/esm/connect/socket.js +10 -5
- package/dist/esm/connect/socket.types.js +1 -0
- package/dist/esm/networkMonitor/service.js +18 -8
- package/dist/foundation-comms.api.json +342 -8
- package/dist/foundation-comms.d.ts +38 -4
- package/docs/api/foundation-comms.connectevents.addstreamlistener.md +2 -1
- package/docs/api/foundation-comms.connectevents.md +1 -1
- package/docs/api/foundation-comms.connecteventsemitter.md +1 -0
- package/docs/api/foundation-comms.connecteventsemitter.onstreamerrorevent.md +26 -0
- package/docs/api/foundation-comms.defaultconnectevents.addstreamlistener.md +2 -1
- package/docs/api/foundation-comms.defaultconnectevents.md +2 -1
- package/docs/api/foundation-comms.defaultconnectevents.onstreamerrorevent.md +26 -0
- package/docs/api/foundation-comms.md +3 -0
- package/docs/api/foundation-comms.pingmessage.md +1 -1
- package/docs/api/foundation-comms.streamerrorevent.md +14 -0
- package/docs/api/foundation-comms.streamerroreventdetail.md +16 -0
- package/docs/api/foundation-comms.streamerroreventtype.md +12 -0
- package/docs/api-report.md +23 -5
- package/package.json +12 -12
@@ -98,6 +98,7 @@ export interface Connect {
|
|
98
98
|
streamState(resourceName: string, onMessage: Function, onError: Function, params?: any, initialState?: any[]): Observable<any[]>;
|
99
99
|
/**
|
100
100
|
* Starts listening for updates on the specified resource without auto-teardown.
|
101
|
+
* @deprecated - Use `stream` instead. Will be removed in v15.
|
101
102
|
* @alpha
|
102
103
|
* @param resourceName - The name of the resource to listen for updates on.
|
103
104
|
* @param onMessage - A callback function to handle received messages.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/connect/connect.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAoB,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACnG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACtB;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAE5C;;;;OAIG;IACH,QAAQ,CAAC,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AAU,CAAC,GAAG,EAAE,CAAC;IAMb,yBAAyB,CAC9B,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,GAAG,GACX,gBAAgB,CAAC,OAAO,CAAC;IAef,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMhD,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKnD,UAAU,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMrD,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,GAAE,OAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IAmC9E,aAAa,CACxB,YAAY,EAAE,MAAM,EACpB,QAAQ,GAAE,OAAc,GACvB,OAAO,CAAC,cAAc,CAAC;IAiCnB,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC;IASvE,qBAAqB,CAAC,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAM/C,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;CAOrF;AAID;;;GAGG;AACH,eAAO,MAAM,SAAS,+DAAkE,CAAC;AAEzF;;;GAGG;AACH,eAAO,MAAM,OAAO,+DAEnB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAEpC"}
|
@@ -43,6 +43,20 @@ export type StreamEventDetail = {
|
|
43
43
|
* @public
|
44
44
|
*/
|
45
45
|
export type StreamEvent = CustomEvent<StreamEventDetail>;
|
46
|
+
/**
|
47
|
+
* @public
|
48
|
+
*/
|
49
|
+
export declare const StreamErrorEventType = "connect-stream-error-event";
|
50
|
+
/**
|
51
|
+
* @public
|
52
|
+
*/
|
53
|
+
export type StreamErrorEventDetail = Pick<StreamEventDetail, 'resourceName' | 'stream'> & {
|
54
|
+
error: any;
|
55
|
+
};
|
56
|
+
/**
|
57
|
+
* @public
|
58
|
+
*/
|
59
|
+
export type StreamErrorEvent = CustomEvent<StreamErrorEventDetail>;
|
46
60
|
/**
|
47
61
|
* @public
|
48
62
|
*/
|
@@ -81,8 +95,9 @@ export interface ConnectEvents {
|
|
81
95
|
* Add a stream listener.
|
82
96
|
* @param listener - A listener callback function.
|
83
97
|
* @param complete - A complete listener callback function.
|
98
|
+
* @param error - A error listener callback function.
|
84
99
|
*/
|
85
|
-
addStreamListener(listener: Listener<StreamEvent>, complete: Listener<StreamCompleteEvent>): () => void;
|
100
|
+
addStreamListener(listener: Listener<StreamEvent>, complete: Listener<StreamCompleteEvent>, error: Listener<StreamErrorEvent>): () => void;
|
86
101
|
/**
|
87
102
|
* Add a commit listener.
|
88
103
|
* @param listener - A listener callback function.
|
@@ -108,6 +123,13 @@ export interface ConnectEventsEmitter extends ConnectEvents {
|
|
108
123
|
* @param functions - Any functions provided.
|
109
124
|
*/
|
110
125
|
onStreamEvent(resourceName: string, message: Message<MessageDetails.DataserverRequest>, stream: SocketObservable<any>, functions: StreamEventFunctions): void;
|
126
|
+
/**
|
127
|
+
* Called by Connect.
|
128
|
+
* @param resourceName - The name of the resource.
|
129
|
+
* @param stream - The actual stream itself.
|
130
|
+
* @param error - The error that occurred.
|
131
|
+
*/
|
132
|
+
onStreamErrorEvent(resourceName: string, stream: SocketObservable<any>, error: any): void;
|
111
133
|
/**
|
112
134
|
* Called by Connect.
|
113
135
|
* @param resourceName - The name of the resource.
|
@@ -137,10 +159,14 @@ export declare class DefaultConnectEvents implements ConnectEventsEmitter {
|
|
137
159
|
protected streamListeners: import("@genesislcap/foundation-utils").Observer<StreamEvent>;
|
138
160
|
/** @internal */
|
139
161
|
protected streamCompleteListeners: import("@genesislcap/foundation-utils").Observer<StreamCompleteEvent>;
|
162
|
+
/** @internal */
|
163
|
+
protected streamErrorListeners: import("@genesislcap/foundation-utils").Observer<StreamErrorEvent>;
|
140
164
|
/** {@inheritDoc ConnectEvents.addStreamListener} */
|
141
|
-
addStreamListener(listener: Listener<StreamEvent>, complete: Listener<StreamCompleteEvent>): () => void;
|
165
|
+
addStreamListener(listener: Listener<StreamEvent>, complete: Listener<StreamCompleteEvent>, error: Listener<StreamErrorEvent>): () => void;
|
142
166
|
/** {@inheritDoc ConnectEventsEmitter.onStreamEvent} */
|
143
167
|
onStreamEvent(resourceName: string, message: Message<MessageDetails.DataserverRequest>, stream: SocketObservable<any>, functions: StreamEventFunctions): void;
|
168
|
+
/** {@inheritDoc ConnectEventsEmitter.onStreamErrorEvent} */
|
169
|
+
onStreamErrorEvent(resourceName: string, stream: SocketObservable<any>, error: any): void;
|
144
170
|
/** {@inheritDoc ConnectEventsEmitter.onStreamCompleteEvent} */
|
145
171
|
onStreamCompleteEvent(resourceName: string, stream: SocketObservable<any>): void;
|
146
172
|
/** @internal */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"connect.events.d.ts","sourceRoot":"","sources":["../../../src/connect/connect.events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC7F,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,eAAe,yBAAyB,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,iBAAiB,CAAC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Y,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,GAAG;IAYzF,+DAA+D;IACxD,qBAAqB,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,CAAC,GAAG,CAAC;IAWhF,gBAAgB;IAChB,SAAS,CAAC,eAAe,gEAAiC;IAE1D,oDAAoD;IACpD,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,CAAC,WAAW,CAAC;IAIjD,uDAAuD;IAChD,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;IAWxD,gBAAgB;IAChB,SAAS,CAAC,iBAAiB,kEAAmC;IAE9D,sDAAsD;IACtD,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,aAAa,CAAC;IAIrD,yDAAyD;IAClD,eAAe,CACpB,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,WAAW,CAAC,EAC5C,KAAK,CAAC,EAAE,GAAG;CAYd;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,qEAEzB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,4EAEhC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"connect.types.d.ts","sourceRoot":"","sources":["../../../src/connect/connect.types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"connect.types.d.ts","sourceRoot":"","sources":["../../../src/connect/connect.types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG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CAAC;IAKnD,UAAU,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAWrD,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,GAAE,OAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IAU9E,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAYlE,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC;IASvE,qBAAqB,CAAC,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAS/C,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;IAYpF,OAAO,CAAC,UAAU;IAkDlB,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,8BAA8B;IAmBtC,OAAO,CAAC,MAAM,CAAC,OAAO;IAItB,OAAO,CAAC,MAAM,CAAC,MAAM;CAUtB;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,+DAAsE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connect/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connect/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC"}
|
@@ -215,7 +215,7 @@ export type Message<T = void | any> = {
|
|
215
215
|
/**
|
216
216
|
* @public
|
217
217
|
*/
|
218
|
-
export type PingMessage = Pick<Message, 'MESSAGE_TYPE' | 'SOURCE_REF' | 'DETAILS'> & {
|
218
|
+
export type PingMessage = Pick<Message, 'MESSAGE_TYPE' | 'SOURCE_REF' | 'DETAILS' | 'SESSION_AUTH_TOKEN'> & {
|
219
219
|
VERBOSE?: boolean;
|
220
220
|
[key: string]: any;
|
221
221
|
};
|
@@ -275,12 +275,16 @@ export declare const messageOrThrow: (message: Message) => Message<any>;
|
|
275
275
|
/**
|
276
276
|
* Check if the message contains an error code.
|
277
277
|
* @param message - The message object.
|
278
|
-
* @param code - The error code.
|
278
|
+
* @param code - The error code. Either a {@link http-status-codes#StatusCodes | StatusCodes} number or an entire status code string.
|
279
279
|
* @public
|
280
280
|
*/
|
281
281
|
export declare const messageHasErrorCode: (message: Message, code: string | number) => boolean;
|
282
282
|
/**
|
283
283
|
* A utility class for building different types of messages.
|
284
|
+
*
|
285
|
+
* @privateRemarks
|
286
|
+
* The SESSION_AUTH_TOKEN etc in messages should probably be removed with the move to cookies.
|
287
|
+
*
|
284
288
|
* @public
|
285
289
|
*/
|
286
290
|
export interface MessageBuilder {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/connect/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAY,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,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,GAC3B,OAAO,CAAC,cAAc,CAAC,cAAc,CAAC;IAYlC,gCAAgC,CACrC,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,SAAS,GAAE,MAAiB,GAC3B,OAAO,CAAC,cAAc,CAAC,mBAAmB,CAAC;IAavC,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAWjD,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAOpD,4BAA4B,CACjC,OAAO,EAAE,OAAO,EAChB,WAAW,GAAE,MAA0C,GACtD,WAAW;IAed,8DAA8D;IACvD,0BAA0B,CAAC,OAAO,UAAQ,GAAG,WAAW;CAShE;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,sEAE1B,CAAC"}
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { User } from '@genesislcap/foundation-user';
|
2
2
|
import { JSONSerializer, UUID } from '@genesislcap/foundation-utils';
|
3
|
-
import { Observable,
|
3
|
+
import { Observable, Subject, Subscription } from 'rxjs';
|
4
4
|
import { Session } from '../session';
|
5
|
-
import { Message, MessageBuilder
|
5
|
+
import { Message, MessageBuilder } from './message';
|
6
6
|
import { SocketReconnectOptions } from './reconnectStrategy';
|
7
7
|
import { SocketStatus } from './socket.status';
|
8
|
+
import type { SocketConnectOptions } from './socket.types';
|
8
9
|
/**
|
9
10
|
* Subject that wraps a WebSocketSubject and provides a Subject interface for sending and receiving messages.
|
10
11
|
* @public
|
@@ -26,60 +27,6 @@ export declare class SocketObservable<T> extends Observable<T> {
|
|
26
27
|
* @public
|
27
28
|
*/
|
28
29
|
export { Subscription as SocketSubscription };
|
29
|
-
/**
|
30
|
-
* The Socket connection options definition.
|
31
|
-
* @public
|
32
|
-
*/
|
33
|
-
export type SocketConnectOptions = {
|
34
|
-
/**
|
35
|
-
* Experimental flag to force reconnection all error scenarios (1011, 1012, etc). Won't rely on reconnectAttempts value.
|
36
|
-
* @experimental
|
37
|
-
* @remarks
|
38
|
-
* This will force the socket to reconnect if the connection is lost even on "final" errors. Only disconnects when directly calling reset()
|
39
|
-
* @see Socket#reset
|
40
|
-
*/
|
41
|
-
alwaysOn?: boolean;
|
42
|
-
/**
|
43
|
-
* An observer to receive notifications of incoming messages from the server.
|
44
|
-
*/
|
45
|
-
connectObserver?: Observer<Message>;
|
46
|
-
/**
|
47
|
-
* Enable sending heartbeat messages to the server to prevent the connection from timing out.
|
48
|
-
*/
|
49
|
-
enableHeartbeat?: boolean;
|
50
|
-
/**
|
51
|
-
* Enable logging of heartbeat messages.
|
52
|
-
*/
|
53
|
-
enableHeartbeatLogging?: boolean;
|
54
|
-
/**
|
55
|
-
* Enable logging of incoming and outgoing WS messages.
|
56
|
-
*/
|
57
|
-
enableMessageLogging?: boolean;
|
58
|
-
/**
|
59
|
-
* Interval between heartbeat messages
|
60
|
-
* @remarks
|
61
|
-
* Time in milliseconds
|
62
|
-
*/
|
63
|
-
heartbeatInterval?: number;
|
64
|
-
/**
|
65
|
-
* Server will send resource level information
|
66
|
-
*/
|
67
|
-
verboseHeartbeat?: boolean;
|
68
|
-
/**
|
69
|
-
* Called with the ping message before it is sent
|
70
|
-
* @param message - The outgoing ping message.
|
71
|
-
*/
|
72
|
-
heartbeatPingCallback?: (message: PingMessage) => void;
|
73
|
-
/**
|
74
|
-
* Called with the pong message after it is received
|
75
|
-
* @param message - The incoming pong message.
|
76
|
-
*/
|
77
|
-
heartbeatPongCallback?: (message: PongMessage) => void;
|
78
|
-
/**
|
79
|
-
* The path to a proxy server to use for the connection.
|
80
|
-
*/
|
81
|
-
proxyPath?: string;
|
82
|
-
};
|
83
30
|
/**
|
84
31
|
* The Socket message handler definition.
|
85
32
|
* @public
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"socket.d.ts","sourceRoot":"","sources":["../../../src/connect/socket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE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aAAa;IAMd,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,GAAG,GAAG,CAAC,EAAE,aAAa,UAAO,GAAG,OAAO,CAAC,OAAO,GAAG,GAAG,CAAC;IAyBhF,aAAa,CAAC,CAAC,EACpB,OAAO,EAAE,OAAO,CAAC,CAAC,GAAG,GAAG,CAAC,EACzB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,UAAU,CAAC,EAAE,QAAQ,GACpB,UAAU,CAAC,OAAO,CAAC;IAgDf,4BAA4B,CAAC,CAAC,EACnC,OAAO,EAAE,OAAO,CAAC,CAAC,GAAG,GAAG,CAAC,EACzB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,GAChB,UAAU,CAAC,OAAO,CAAC;IAcf,cAAc,QAAO,cAAc,OAAO,CAAC,CAAoB;IAEtE,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,oBAAoB;IAI5B,OAAO,CAAC,iBAAiB;IAUzB,OAAO,CAAC,kBAAkB;CAkB3B;AAED;;;GAGG;AACH,eAAO,MAAM,MAAM,8DAAgE,CAAC;AAEpF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,IAAI,MAAM,CAElC"}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import type { Observer } from 'rxjs';
|
2
|
+
import type { Message, PingMessage, PongMessage } from './message';
|
3
|
+
/**
|
4
|
+
* The Socket connection options definition.
|
5
|
+
* @public
|
6
|
+
*/
|
7
|
+
export type SocketConnectOptions = {
|
8
|
+
/**
|
9
|
+
* Experimental flag to force reconnection all error scenarios (1011, 1012, etc). Won't rely on reconnectAttempts value.
|
10
|
+
* @experimental
|
11
|
+
* @remarks
|
12
|
+
* This will force the socket to reconnect if the connection is lost even on "final" errors. Only disconnects when directly calling reset()
|
13
|
+
* @see Socket#reset
|
14
|
+
*/
|
15
|
+
alwaysOn?: boolean;
|
16
|
+
/**
|
17
|
+
* An observer to receive notifications of incoming messages from the server.
|
18
|
+
*/
|
19
|
+
connectObserver?: Observer<Message>;
|
20
|
+
/**
|
21
|
+
* Enable sending heartbeat messages to the server to prevent the connection from timing out.
|
22
|
+
*/
|
23
|
+
enableHeartbeat?: boolean;
|
24
|
+
/**
|
25
|
+
* Enable logging of heartbeat messages.
|
26
|
+
*/
|
27
|
+
enableHeartbeatLogging?: boolean;
|
28
|
+
/**
|
29
|
+
* Enable logging of incoming and outgoing WS messages.
|
30
|
+
*/
|
31
|
+
enableMessageLogging?: boolean;
|
32
|
+
/**
|
33
|
+
* Interval between heartbeat messages
|
34
|
+
* @remarks
|
35
|
+
* Time in milliseconds
|
36
|
+
*/
|
37
|
+
heartbeatInterval?: number;
|
38
|
+
/**
|
39
|
+
* Server will send resource level information
|
40
|
+
*/
|
41
|
+
verboseHeartbeat?: boolean;
|
42
|
+
/**
|
43
|
+
* Called with the ping message before it is sent
|
44
|
+
* @param message - The outgoing ping message.
|
45
|
+
*/
|
46
|
+
heartbeatPingCallback?: (message: PingMessage) => void;
|
47
|
+
/**
|
48
|
+
* Called with the pong message after it is received
|
49
|
+
* @param message - The incoming pong message.
|
50
|
+
*/
|
51
|
+
heartbeatPongCallback?: (message: PongMessage) => void;
|
52
|
+
/**
|
53
|
+
* The path to a proxy server to use for the connection.
|
54
|
+
*/
|
55
|
+
proxyPath?: string;
|
56
|
+
};
|
57
|
+
//# sourceMappingURL=socket.types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"socket.types.d.ts","sourceRoot":"","sources":["../../../src/connect/socket.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;;;OAMG;IACH,QAAQ,CAAC,E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AC,wBAAwB;CAOnC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,sEAE1B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,CAElD"}
|
@@ -8,6 +8,10 @@ export const CommitEventType = 'connect-commit-event';
|
|
8
8
|
* @public
|
9
9
|
*/
|
10
10
|
export const StreamEventType = 'connect-stream-event';
|
11
|
+
/**
|
12
|
+
* @public
|
13
|
+
*/
|
14
|
+
export const StreamErrorEventType = 'connect-stream-error-event';
|
11
15
|
/**
|
12
16
|
* @public
|
13
17
|
*/
|
@@ -27,18 +31,22 @@ export class DefaultConnectEvents {
|
|
27
31
|
/** @internal */
|
28
32
|
this.streamCompleteListeners = createObserver();
|
29
33
|
/** @internal */
|
34
|
+
this.streamErrorListeners = createObserver();
|
35
|
+
/** @internal */
|
30
36
|
this.commitListeners = createObserver();
|
31
37
|
/** @internal */
|
32
38
|
this.metadataListeners = createObserver();
|
33
39
|
}
|
34
40
|
/** {@inheritDoc ConnectEvents.addStreamListener} */
|
35
|
-
addStreamListener(listener, complete) {
|
36
|
-
var _a, _b;
|
41
|
+
addStreamListener(listener, complete, error) {
|
42
|
+
var _a, _b, _c;
|
37
43
|
const unsubscribe = (_a = this.streamListeners) === null || _a === void 0 ? void 0 : _a.subscribe(listener);
|
38
44
|
const completeUnsubscribe = (_b = this.streamCompleteListeners) === null || _b === void 0 ? void 0 : _b.subscribe(complete);
|
45
|
+
const errorUnsubscribe = (_c = this.streamErrorListeners) === null || _c === void 0 ? void 0 : _c.subscribe(error);
|
39
46
|
return () => {
|
40
47
|
unsubscribe();
|
41
48
|
completeUnsubscribe();
|
49
|
+
errorUnsubscribe();
|
42
50
|
};
|
43
51
|
}
|
44
52
|
/** {@inheritDoc ConnectEventsEmitter.onStreamEvent} */
|
@@ -53,6 +61,17 @@ export class DefaultConnectEvents {
|
|
53
61
|
},
|
54
62
|
}));
|
55
63
|
}
|
64
|
+
/** {@inheritDoc ConnectEventsEmitter.onStreamErrorEvent} */
|
65
|
+
onStreamErrorEvent(resourceName, stream, error) {
|
66
|
+
var _a;
|
67
|
+
(_a = this.streamErrorListeners) === null || _a === void 0 ? void 0 : _a.publish(new CustomEvent(StreamErrorEventType, {
|
68
|
+
detail: {
|
69
|
+
resourceName,
|
70
|
+
stream,
|
71
|
+
error,
|
72
|
+
},
|
73
|
+
}));
|
74
|
+
}
|
56
75
|
/** {@inheritDoc ConnectEventsEmitter.onStreamCompleteEvent} */
|
57
76
|
onStreamCompleteEvent(resourceName, stream) {
|
58
77
|
var _a;
|
@@ -70,7 +70,10 @@ let DefaultConnect = class DefaultConnect {
|
|
70
70
|
stream(resourceName, onMessage, onError, params) {
|
71
71
|
const msg = this.messageBuilder.createDataLogonMessage(resourceName, params);
|
72
72
|
logger.debug(`${msg.MESSAGE_TYPE} (stream) message created -> `, msg);
|
73
|
-
const resource = this.socket.sendForStream(msg, onMessage,
|
73
|
+
const resource = this.socket.sendForStream(msg, onMessage, (error) => {
|
74
|
+
onError(error);
|
75
|
+
this.events.onStreamErrorEvent(resourceName, resource, error);
|
76
|
+
}, () => {
|
74
77
|
this.events.onStreamCompleteEvent(resourceName, resource);
|
75
78
|
});
|
76
79
|
this.events.onStreamEvent(resourceName, msg, resource, {
|
@@ -83,9 +86,18 @@ let DefaultConnect = class DefaultConnect {
|
|
83
86
|
return this.stream(resourceName, onMessage, onError, params).pipe(scan(updateState, initialState));
|
84
87
|
}
|
85
88
|
streamWithoutAutoTeardown(resourceName, onMessage, onError, params) {
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
+
logger.deprecated('streamWithoutAutoTeardown', `Please use 'stream' api instead.`, '15.0.0');
|
90
|
+
const msg = this.messageBuilder.createDataLogonMessage(resourceName, params);
|
91
|
+
logger.debug(`${msg.MESSAGE_TYPE} (stream without auto-teardown) message created -> `, msg);
|
92
|
+
const resource = this.socket.sendForStreamWithoutTeardown(msg, onMessage, (error) => {
|
93
|
+
onError(error);
|
94
|
+
this.events.onStreamErrorEvent(resourceName, resource, error);
|
95
|
+
});
|
96
|
+
this.events.onStreamEvent(resourceName, msg, resource, {
|
97
|
+
onMessage,
|
98
|
+
onError,
|
99
|
+
});
|
100
|
+
return resource;
|
89
101
|
}
|
90
102
|
getMoreRows(sourceRef) {
|
91
103
|
return __awaiter(this, void 0, void 0, function* () {
|
@@ -136,6 +136,7 @@ let DefaultHttpConnect = class DefaultHttpConnect {
|
|
136
136
|
return this.stream(resourceName, onMessage, onError, params).pipe(scan(updateState, initialState));
|
137
137
|
}
|
138
138
|
streamWithoutAutoTeardown(resourceName, onMessage, onError, params) {
|
139
|
+
logger.deprecated('streamWithoutAutoTeardown', `Please use 'stream' api instead.`, '15.0.0');
|
139
140
|
return this.stream(resourceName, onMessage, onError, params);
|
140
141
|
}
|
141
142
|
getMessage(message) {
|
@@ -67,12 +67,12 @@ export const messageOrThrow = (message) => {
|
|
67
67
|
/**
|
68
68
|
* Check if the message contains an error code.
|
69
69
|
* @param message - The message object.
|
70
|
-
* @param code - The error code.
|
70
|
+
* @param code - The error code. Either a {@link http-status-codes#StatusCodes | StatusCodes} number or an entire status code string.
|
71
71
|
* @public
|
72
72
|
*/
|
73
73
|
export const messageHasErrorCode = (message, code) => {
|
74
74
|
return Array.isArray(message === null || message === void 0 ? void 0 : message.ERROR)
|
75
|
-
? message === null || message === void 0 ? void 0 : message.ERROR.some((error) => error.CODE === code)
|
75
|
+
? message === null || message === void 0 ? void 0 : message.ERROR.some((error) => { var _a, _b; return ((_a = error.CODE) === null || _a === void 0 ? void 0 : _a.includes(`${code}`)) || ((_b = error.STATUS_CODE) === null || _b === void 0 ? void 0 : _b.includes(`${code}`)); })
|
76
76
|
: false;
|
77
77
|
};
|
78
78
|
/**
|
@@ -248,6 +248,7 @@ let DefaultMessageBuilder = class DefaultMessageBuilder {
|
|
248
248
|
SOURCE_REF: this.uuid.createId(),
|
249
249
|
VERBOSE: verbose,
|
250
250
|
DETAILS: {},
|
251
|
+
SESSION_AUTH_TOKEN: this.session.getSessionStorageItem('authToken'),
|
251
252
|
};
|
252
253
|
}
|
253
254
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { __awaiter, __decorate, __param } from "tslib";
|
2
2
|
import { User } from '@genesislcap/foundation-user';
|
3
3
|
import { JSONSerializer, UUID } from '@genesislcap/foundation-utils';
|
4
|
-
import { observable } from '@microsoft/fast-element';
|
4
|
+
import { DOM, observable } from '@microsoft/fast-element';
|
5
5
|
import { DI } from '@microsoft/fast-foundation';
|
6
6
|
import { Observable, of, Subject, Subscription, takeUntil, throwError } from 'rxjs';
|
7
7
|
import { filter, mergeMap, switchMap, takeWhile } from 'rxjs/operators';
|
@@ -291,6 +291,9 @@ let DefaultSocket = class DefaultSocket {
|
|
291
291
|
}
|
292
292
|
this.heartbeatIsEnabled =
|
293
293
|
pong.MESSAGE_TYPE === MessageType.HEARTBEAT_PONG && pong.SOURCE_REF === ping.SOURCE_REF;
|
294
|
+
if (pong.IS_AUTHENTICATED !== undefined) {
|
295
|
+
this.hasValidSession = pong.IS_AUTHENTICATED;
|
296
|
+
}
|
294
297
|
});
|
295
298
|
if ((_b = (_a = this.connectOptions) === null || _a === void 0 ? void 0 : _a.enableHeartbeat) !== null && _b !== void 0 ? _b : this.heartbeatIsEnabled) {
|
296
299
|
const intervalInMillisecocnds = (_d = (_c = this.connectOptions) === null || _c === void 0 ? void 0 : _c.heartbeatInterval) !== null && _d !== void 0 ? _d : this.heartbeatInterval;
|
@@ -394,7 +397,12 @@ let DefaultSocket = class DefaultSocket {
|
|
394
397
|
const sendingMessageLog = `Sending Message (stream) for SourceRef: ${message.SOURCE_REF} | MessageType: ${message.MESSAGE_TYPE}`;
|
395
398
|
this.logMessageTypeFlow(message.MESSAGE_TYPE, logger.info, sendingMessageLog);
|
396
399
|
this.setMessageHandler(message, onMessage, onError, true);
|
397
|
-
|
400
|
+
/**
|
401
|
+
* We need to queue these outgoing messages to allow the consumers to subscribe in time. We should review the entire
|
402
|
+
* setup with late subscribers in mind, as we can't say when they will actually subscribe. The impact is grids and
|
403
|
+
* other components remaining stuck on Loading screens, as they miss the first `onMessage` reply.
|
404
|
+
*/
|
405
|
+
DOM.queueUpdate(() => this.websocket.next(message));
|
398
406
|
/**
|
399
407
|
* @privateRemarks
|
400
408
|
* Running the data logoff from here makes more sense given the network monitor actor is optionally added.
|
@@ -438,9 +446,6 @@ let DefaultSocket = class DefaultSocket {
|
|
438
446
|
this.wsMessageHandlers.set(message.SOURCE_REF, new SocketMessageHandler(message, onMessage, onError, isSubscription));
|
439
447
|
}
|
440
448
|
sendDataLogoff(sourceRef) {
|
441
|
-
if (this.user.isAnonymous) {
|
442
|
-
return;
|
443
|
-
}
|
444
449
|
this.send(this.messageBuilder.createDataLogoffMessage(sourceRef), false);
|
445
450
|
}
|
446
451
|
removeMessageHandler(sourceRef) {
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -134,20 +134,16 @@ export class DefaultNetworkMonitor {
|
|
134
134
|
lastUpdated = result.lastUpdated;
|
135
135
|
lastMessage = result.lastMessage;
|
136
136
|
timeout = result.timeout;
|
137
|
-
attemptDataLogon =
|
138
|
-
timeout ||
|
139
|
-
(lastMessage === null || lastMessage === void 0 ? void 0 : lastMessage.MESSAGE_TYPE) === MessageType.MSG_NACK ||
|
140
|
-
messageHasErrorCode(lastMessage, StatusCodes.NOT_FOUND);
|
141
137
|
}
|
142
138
|
catch (e) {
|
143
139
|
isConnected = false;
|
144
140
|
lastUpdated = this.getNowTimestamp();
|
145
141
|
lastError = e;
|
146
142
|
lastMessage = (_a = e === null || e === void 0 ? void 0 : e.receivedMessage) !== null && _a !== void 0 ? _a : e;
|
147
|
-
attemptDataLogon =
|
148
|
-
(lastMessage === null || lastMessage === void 0 ? void 0 : lastMessage.MESSAGE_TYPE) === MessageType.MSG_NACK ||
|
149
|
-
messageHasErrorCode(lastMessage, StatusCodes.NOT_FOUND);
|
150
143
|
}
|
144
|
+
attemptDataLogon =
|
145
|
+
(lastMessage === null || lastMessage === void 0 ? void 0 : lastMessage.MESSAGE_TYPE) === MessageType.MSG_NACK ||
|
146
|
+
messageHasErrorCode(lastMessage, StatusCodes.NOT_FOUND);
|
151
147
|
formattedTimestamp = this.getFormattedTimestamp(lastUpdated !== null && lastUpdated !== void 0 ? lastUpdated : this.getNowTimestamp());
|
152
148
|
if (isConnected) {
|
153
149
|
networkLogger.debug(`${name} is healthy at ${formattedTimestamp}`);
|
@@ -289,6 +285,20 @@ export class DefaultNetworkMonitor {
|
|
289
285
|
return;
|
290
286
|
}
|
291
287
|
this.removeResource(stream);
|
288
|
+
}, ({ detail }) => {
|
289
|
+
var _a;
|
290
|
+
const { resourceName, stream, error } = detail;
|
291
|
+
const lastMessage = (_a = error.receivedMessage) !== null && _a !== void 0 ? _a : error;
|
292
|
+
let readableError = '';
|
293
|
+
if (messageHasErrorCode(lastMessage, StatusCodes.NOT_FOUND)) {
|
294
|
+
readableError = `Please check the resource is running.`;
|
295
|
+
}
|
296
|
+
else if (messageHasErrorCode(lastMessage, StatusCodes.FORBIDDEN)) {
|
297
|
+
readableError = `You are not authorised to access this resource, removing it from monitoring.`;
|
298
|
+
this.removeResource(stream);
|
299
|
+
}
|
300
|
+
networkLogger.error(`${resourceName} errored at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`, readableError, error);
|
301
|
+
return;
|
292
302
|
}));
|
293
303
|
}
|
294
304
|
if (this.config.genesisConnectEvents.includes('commit')) {
|
@@ -307,7 +317,7 @@ export class DefaultNetworkMonitor {
|
|
307
317
|
* In such cases the stream / resource is never actually created, so the `onStreamEvent` is never fired.
|
308
318
|
* Meta/init failures are only reported in console logs, however, might be a good idea to show those here.
|
309
319
|
*/
|
310
|
-
networkLogger.error(`${resourceName} had an unrecoverable error at ${this.getFormattedTimestamp(this.getNowTimestamp())}
|
320
|
+
networkLogger.error(`${resourceName} had an unrecoverable error at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`, `Please check the resource is running.`, error);
|
311
321
|
return;
|
312
322
|
}
|
313
323
|
}));
|