@genesislcap/foundation-comms 14.170.1-alpha-2fe40dd.0 → 14.171.0
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/dts/connect/connect.d.ts +2 -2
- package/dist/dts/connect/connect.d.ts.map +1 -1
- package/dist/dts/connect/socket.d.ts +2 -2
- package/dist/dts/connect/socket.d.ts.map +1 -1
- package/dist/dts/testing/mocks/connect/socket.d.ts +1 -1
- package/dist/dts/testing/mocks/connect/socket.d.ts.map +1 -1
- package/dist/esm/connect/connect.js +2 -2
- package/dist/esm/connect/socket.js +5 -7
- package/dist/esm/testing/mocks/connect/socket.js +1 -1
- package/dist/foundation-comms.api.json +10 -74
- package/dist/foundation-comms.d.ts +5 -5
- package/docs/api/foundation-comms.connect.md +1 -1
- package/docs/api/foundation-comms.connect.stream.md +1 -2
- package/docs/api/foundation-comms.defaultconnect.md +1 -1
- package/docs/api/foundation-comms.defaultconnect.stream.md +1 -2
- package/docs/api/foundation-comms.defaultsocket.md +1 -1
- package/docs/api/foundation-comms.defaultsocket.sendforstream.md +1 -2
- package/docs/api/foundation-comms.socket.md +1 -1
- package/docs/api/foundation-comms.socket.sendforstream.md +1 -2
- package/docs/api-report.md +5 -5
- package/package.json +11 -11
|
@@ -89,7 +89,7 @@ export interface Connect {
|
|
|
89
89
|
* @param params - Additional parameters to pass to the server.
|
|
90
90
|
* @returns An observable that emits messages received from the server.
|
|
91
91
|
*/
|
|
92
|
-
stream(resourceName: string, onMessage: Function, onError: Function, params?: any
|
|
92
|
+
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
|
93
93
|
/**
|
|
94
94
|
* Requests additional rows of data for the specified source reference.
|
|
95
95
|
* @public
|
|
@@ -170,7 +170,7 @@ export declare class DefaultConnect implements Connect {
|
|
|
170
170
|
connect(host: string): Promise<boolean>;
|
|
171
171
|
disconnect(): void;
|
|
172
172
|
snapshot(resourceName: string, params?: any): Promise<Message>;
|
|
173
|
-
stream(resourceName: string, onMessage: Function, onError: Function, params?: any
|
|
173
|
+
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
|
174
174
|
getMoreRows(sourceRef: string): Promise<Message>;
|
|
175
175
|
getMoreColumns(sourceRef: string): Promise<Message>;
|
|
176
176
|
dataLogoff(streamSourceRef: string): Promise<Message>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/connect/connect.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACnD,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;AAElC;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,aAalC,CAAC;AAEF;;;;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,kBAAkB,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IAEvD;;;;;;;OAOG;IACH,IAAI,CAAC,CAAC,EAAE,OAAO,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121,7 @@ export interface Socket extends Omit<SocketStatus, 'serialize' | 'onClose' | 're
|
|
|
121
121
|
*/
|
|
122
122
|
reset(): void;
|
|
123
123
|
send<T>(message: Message<T | any>, needsHandling?: boolean): Promise<Message | any>;
|
|
124
|
-
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function,
|
|
124
|
+
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
|
|
125
125
|
socketMessages(): SocketSubject<Message>;
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
@@ -164,7 +164,7 @@ export declare class DefaultSocket implements Socket {
|
|
|
164
164
|
reset(): void;
|
|
165
165
|
private cleanMessages;
|
|
166
166
|
send<T>(message: Message<T | any>, needsHandling?: boolean): Promise<Message | any>;
|
|
167
|
-
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function,
|
|
167
|
+
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
|
|
168
168
|
socketMessages: () => SocketSubject<Message>;
|
|
169
169
|
private setMessageHandler;
|
|
170
170
|
private sendDataLogoff;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socket.d.ts","sourceRoot":"","sources":["../../../src/connect/socket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAG/D,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAM,OAAO,EAAE,YAAY,EAAyB,MAAM,MAAM,CAAC;AAG9F,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAoB,OAAO,EAAE,cAAc,EAA+B,MAAM,WAAW,CAAC;AACnG,OAAO,EAKL,sBAAsB,EAEvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C;;;;GAIG;AACH,qBA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SAAS,IAAI,MAAM,CAElC"}
|
|
@@ -18,7 +18,7 @@ export declare class SocketMock implements Socket {
|
|
|
18
18
|
connect(host: string, options?: SocketConnectOptions, reconnectOptions?: SocketReconnectOptions): Promise<boolean>;
|
|
19
19
|
disconnect(): void;
|
|
20
20
|
send<T>(message: Message<any>): Promise<Message | any>;
|
|
21
|
-
sendForStream<T>(message: Message<any>, onMessage: Function, onError: Function,
|
|
21
|
+
sendForStream<T>(message: Message<any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
|
|
22
22
|
socketMessages(): SocketSubject<Message>;
|
|
23
23
|
reset(): void;
|
|
24
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socket.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/connect/socket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAQ,UAAU,EAAE,MAAM,MAAM,CAAC;AACzD,OAAO,KAAK,EACV,OAAO,EACP,MAAM,EACN,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;GAEG;AACH,qBAAa,UAAW,YAAW,MAAM;IAChC,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,sBAAsB,EAAE,OAAO,CAAC;IAChC,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,kBAAkB,EAAE,eAAe,CAAC,OAAO,CAAC,CAA6B;IACzE,cAAc,EAAE,OAAO,CAAC;IAExB,WAAW,EAAE,OAAO,CAAC;IACrB,qBAAqB,8BAAgC;IAErD,OAAO,CACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,oBAAoB,EAC9B,gBAAgB,CAAC,EAAE,sBAAsB,GACxC,OAAO,CAAC,OAAO,CAAC;IAIZ,UAAU,IA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AAC,EACrB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,UAAU,CAAC,EAAE,QAAQ,GACpB,UAAU,CAAC,OAAO,CAAC;IAIf,cAAc,IAAI,aAAa,CAAC,OAAO,CAAC;IAI/C,KAAK,IAAI,IAAI;CAGd"}
|
|
@@ -80,10 +80,10 @@ let DefaultConnect = class DefaultConnect {
|
|
|
80
80
|
return this.socket.send(snapshotMessage);
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
-
stream(resourceName, onMessage, onError, params
|
|
83
|
+
stream(resourceName, onMessage, onError, params) {
|
|
84
84
|
const msg = this.messageBuilder.createDataLogonMessage(resourceName, params);
|
|
85
85
|
logger.debug(`${msg.MESSAGE_TYPE} (stream) message created -> `, msg);
|
|
86
|
-
const resource = this.socket.sendForStream(msg, onMessage, onError,
|
|
86
|
+
const resource = this.socket.sendForStream(msg, onMessage, onError, () => {
|
|
87
87
|
this.events.onStreamCompleteEvent(resource);
|
|
88
88
|
});
|
|
89
89
|
this.events.onStreamEvent(resourceName, msg, resource, {
|
|
@@ -377,7 +377,7 @@ let DefaultSocket = class DefaultSocket {
|
|
|
377
377
|
this.websocket.next(message);
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
|
-
sendForStream(message, onMessage, onError,
|
|
380
|
+
sendForStream(message, onMessage, onError, onComplete) {
|
|
381
381
|
if (!this.isConnected) {
|
|
382
382
|
return throwError(() => new Error('WebSocket connection is closed'));
|
|
383
383
|
}
|
|
@@ -408,12 +408,10 @@ let DefaultSocket = class DefaultSocket {
|
|
|
408
408
|
},
|
|
409
409
|
});
|
|
410
410
|
return () => {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
onComplete && onComplete();
|
|
416
|
-
}
|
|
411
|
+
destroyNotifier.complete();
|
|
412
|
+
this.sendDataLogoff(message.SOURCE_REF);
|
|
413
|
+
this.removeMessageHandler(message.SOURCE_REF);
|
|
414
|
+
onComplete && onComplete();
|
|
417
415
|
};
|
|
418
416
|
});
|
|
419
417
|
}
|
|
@@ -15,7 +15,7 @@ export class SocketMock {
|
|
|
15
15
|
send(message) {
|
|
16
16
|
return Promise.resolve(this.nextMessage);
|
|
17
17
|
}
|
|
18
|
-
sendForStream(message, onMessage, onError,
|
|
18
|
+
sendForStream(message, onMessage, onError, onComplete) {
|
|
19
19
|
return from(Promise.resolve(this.nextMessage));
|
|
20
20
|
}
|
|
21
21
|
socketMessages() {
|
|
@@ -1975,14 +1975,6 @@
|
|
|
1975
1975
|
"kind": "Content",
|
|
1976
1976
|
"text": "any"
|
|
1977
1977
|
},
|
|
1978
|
-
{
|
|
1979
|
-
"kind": "Content",
|
|
1980
|
-
"text": ", withAutoTeardown?: "
|
|
1981
|
-
},
|
|
1982
|
-
{
|
|
1983
|
-
"kind": "Content",
|
|
1984
|
-
"text": "boolean"
|
|
1985
|
-
},
|
|
1986
1978
|
{
|
|
1987
1979
|
"kind": "Content",
|
|
1988
1980
|
"text": "): "
|
|
@@ -2012,8 +2004,8 @@
|
|
|
2012
2004
|
],
|
|
2013
2005
|
"isOptional": false,
|
|
2014
2006
|
"returnTypeTokenRange": {
|
|
2015
|
-
"startIndex":
|
|
2016
|
-
"endIndex":
|
|
2007
|
+
"startIndex": 9,
|
|
2008
|
+
"endIndex": 13
|
|
2017
2009
|
},
|
|
2018
2010
|
"releaseTag": "Public",
|
|
2019
2011
|
"overloadIndex": 1,
|
|
@@ -2049,14 +2041,6 @@
|
|
|
2049
2041
|
"endIndex": 8
|
|
2050
2042
|
},
|
|
2051
2043
|
"isOptional": true
|
|
2052
|
-
},
|
|
2053
|
-
{
|
|
2054
|
-
"parameterName": "withAutoTeardown",
|
|
2055
|
-
"parameterTypeTokenRange": {
|
|
2056
|
-
"startIndex": 9,
|
|
2057
|
-
"endIndex": 10
|
|
2058
|
-
},
|
|
2059
|
-
"isOptional": true
|
|
2060
2044
|
}
|
|
2061
2045
|
],
|
|
2062
2046
|
"name": "stream"
|
|
@@ -8111,14 +8095,6 @@
|
|
|
8111
8095
|
"kind": "Content",
|
|
8112
8096
|
"text": "any"
|
|
8113
8097
|
},
|
|
8114
|
-
{
|
|
8115
|
-
"kind": "Content",
|
|
8116
|
-
"text": ", withAutoTeardown?: "
|
|
8117
|
-
},
|
|
8118
|
-
{
|
|
8119
|
-
"kind": "Content",
|
|
8120
|
-
"text": "boolean"
|
|
8121
|
-
},
|
|
8122
8098
|
{
|
|
8123
8099
|
"kind": "Content",
|
|
8124
8100
|
"text": "): "
|
|
@@ -8148,8 +8124,8 @@
|
|
|
8148
8124
|
],
|
|
8149
8125
|
"isStatic": false,
|
|
8150
8126
|
"returnTypeTokenRange": {
|
|
8151
|
-
"startIndex":
|
|
8152
|
-
"endIndex":
|
|
8127
|
+
"startIndex": 9,
|
|
8128
|
+
"endIndex": 13
|
|
8153
8129
|
},
|
|
8154
8130
|
"releaseTag": "Public",
|
|
8155
8131
|
"isProtected": false,
|
|
@@ -8186,14 +8162,6 @@
|
|
|
8186
8162
|
"endIndex": 8
|
|
8187
8163
|
},
|
|
8188
8164
|
"isOptional": true
|
|
8189
|
-
},
|
|
8190
|
-
{
|
|
8191
|
-
"parameterName": "withAutoTeardown",
|
|
8192
|
-
"parameterTypeTokenRange": {
|
|
8193
|
-
"startIndex": 9,
|
|
8194
|
-
"endIndex": 10
|
|
8195
|
-
},
|
|
8196
|
-
"isOptional": true
|
|
8197
8165
|
}
|
|
8198
8166
|
],
|
|
8199
8167
|
"isOptional": false,
|
|
@@ -16088,14 +16056,6 @@
|
|
|
16088
16056
|
"text": "Function",
|
|
16089
16057
|
"canonicalReference": "!Function:interface"
|
|
16090
16058
|
},
|
|
16091
|
-
{
|
|
16092
|
-
"kind": "Content",
|
|
16093
|
-
"text": ", withAutoTeardown?: "
|
|
16094
|
-
},
|
|
16095
|
-
{
|
|
16096
|
-
"kind": "Content",
|
|
16097
|
-
"text": "boolean"
|
|
16098
|
-
},
|
|
16099
16059
|
{
|
|
16100
16060
|
"kind": "Content",
|
|
16101
16061
|
"text": ", onComplete?: "
|
|
@@ -16147,8 +16107,8 @@
|
|
|
16147
16107
|
],
|
|
16148
16108
|
"isStatic": false,
|
|
16149
16109
|
"returnTypeTokenRange": {
|
|
16150
|
-
"startIndex":
|
|
16151
|
-
"endIndex":
|
|
16110
|
+
"startIndex": 10,
|
|
16111
|
+
"endIndex": 14
|
|
16152
16112
|
},
|
|
16153
16113
|
"releaseTag": "Public",
|
|
16154
16114
|
"isProtected": false,
|
|
@@ -16179,20 +16139,12 @@
|
|
|
16179
16139
|
"isOptional": false
|
|
16180
16140
|
},
|
|
16181
16141
|
{
|
|
16182
|
-
"parameterName": "
|
|
16142
|
+
"parameterName": "onComplete",
|
|
16183
16143
|
"parameterTypeTokenRange": {
|
|
16184
16144
|
"startIndex": 8,
|
|
16185
16145
|
"endIndex": 9
|
|
16186
16146
|
},
|
|
16187
16147
|
"isOptional": true
|
|
16188
|
-
},
|
|
16189
|
-
{
|
|
16190
|
-
"parameterName": "onComplete",
|
|
16191
|
-
"parameterTypeTokenRange": {
|
|
16192
|
-
"startIndex": 10,
|
|
16193
|
-
"endIndex": 11
|
|
16194
|
-
},
|
|
16195
|
-
"isOptional": true
|
|
16196
16148
|
}
|
|
16197
16149
|
],
|
|
16198
16150
|
"isOptional": false,
|
|
@@ -24492,14 +24444,6 @@
|
|
|
24492
24444
|
"text": "Function",
|
|
24493
24445
|
"canonicalReference": "!Function:interface"
|
|
24494
24446
|
},
|
|
24495
|
-
{
|
|
24496
|
-
"kind": "Content",
|
|
24497
|
-
"text": ", withAutoTeardown?: "
|
|
24498
|
-
},
|
|
24499
|
-
{
|
|
24500
|
-
"kind": "Content",
|
|
24501
|
-
"text": "boolean"
|
|
24502
|
-
},
|
|
24503
24447
|
{
|
|
24504
24448
|
"kind": "Content",
|
|
24505
24449
|
"text": ", onComplete?: "
|
|
@@ -24538,8 +24482,8 @@
|
|
|
24538
24482
|
],
|
|
24539
24483
|
"isOptional": false,
|
|
24540
24484
|
"returnTypeTokenRange": {
|
|
24541
|
-
"startIndex":
|
|
24542
|
-
"endIndex":
|
|
24485
|
+
"startIndex": 10,
|
|
24486
|
+
"endIndex": 14
|
|
24543
24487
|
},
|
|
24544
24488
|
"releaseTag": "Public",
|
|
24545
24489
|
"overloadIndex": 1,
|
|
@@ -24569,20 +24513,12 @@
|
|
|
24569
24513
|
"isOptional": false
|
|
24570
24514
|
},
|
|
24571
24515
|
{
|
|
24572
|
-
"parameterName": "
|
|
24516
|
+
"parameterName": "onComplete",
|
|
24573
24517
|
"parameterTypeTokenRange": {
|
|
24574
24518
|
"startIndex": 8,
|
|
24575
24519
|
"endIndex": 9
|
|
24576
24520
|
},
|
|
24577
24521
|
"isOptional": true
|
|
24578
|
-
},
|
|
24579
|
-
{
|
|
24580
|
-
"parameterName": "onComplete",
|
|
24581
|
-
"parameterTypeTokenRange": {
|
|
24582
|
-
"startIndex": 10,
|
|
24583
|
-
"endIndex": 11
|
|
24584
|
-
},
|
|
24585
|
-
"isOptional": true
|
|
24586
24522
|
}
|
|
24587
24523
|
],
|
|
24588
24524
|
"typeParameters": [
|
|
@@ -253,7 +253,7 @@ export declare interface Connect {
|
|
|
253
253
|
* @param params - Additional parameters to pass to the server.
|
|
254
254
|
* @returns An observable that emits messages received from the server.
|
|
255
255
|
*/
|
|
256
|
-
stream(resourceName: string, onMessage: Function, onError: Function, params?: any
|
|
256
|
+
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
|
257
257
|
/**
|
|
258
258
|
* Requests additional rows of data for the specified source reference.
|
|
259
259
|
* @public
|
|
@@ -1135,7 +1135,7 @@ export declare class DefaultConnect implements Connect {
|
|
|
1135
1135
|
connect(host: string): Promise<boolean>;
|
|
1136
1136
|
disconnect(): void;
|
|
1137
1137
|
snapshot(resourceName: string, params?: any): Promise<Message>;
|
|
1138
|
-
stream(resourceName: string, onMessage: Function, onError: Function, params?: any
|
|
1138
|
+
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
|
1139
1139
|
getMoreRows(sourceRef: string): Promise<Message>;
|
|
1140
1140
|
getMoreColumns(sourceRef: string): Promise<Message>;
|
|
1141
1141
|
dataLogoff(streamSourceRef: string): Promise<Message>;
|
|
@@ -1720,7 +1720,7 @@ export declare class DefaultSocket implements Socket {
|
|
|
1720
1720
|
reset(): void;
|
|
1721
1721
|
private cleanMessages;
|
|
1722
1722
|
send<T>(message: Message<T | any>, needsHandling?: boolean): Promise<Message | any>;
|
|
1723
|
-
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function,
|
|
1723
|
+
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
|
|
1724
1724
|
socketMessages: () => SocketSubject<Message>;
|
|
1725
1725
|
private setMessageHandler;
|
|
1726
1726
|
private sendDataLogoff;
|
|
@@ -3390,7 +3390,7 @@ export declare interface Socket extends Omit<SocketStatus, 'serialize' | 'onClos
|
|
|
3390
3390
|
*/
|
|
3391
3391
|
reset(): void;
|
|
3392
3392
|
send<T>(message: Message<T | any>, needsHandling?: boolean): Promise<Message | any>;
|
|
3393
|
-
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function,
|
|
3393
|
+
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
|
|
3394
3394
|
socketMessages(): SocketSubject<Message>;
|
|
3395
3395
|
}
|
|
3396
3396
|
|
|
@@ -3502,7 +3502,7 @@ export declare class SocketMock implements Socket {
|
|
|
3502
3502
|
connect(host: string, options?: SocketConnectOptions, reconnectOptions?: SocketReconnectOptions): Promise<boolean>;
|
|
3503
3503
|
disconnect(): void;
|
|
3504
3504
|
send<T>(message: Message<any>): Promise<Message | any>;
|
|
3505
|
-
sendForStream<T>(message: Message<any>, onMessage: Function, onError: Function,
|
|
3505
|
+
sendForStream<T>(message: Message<any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
|
|
3506
3506
|
socketMessages(): SocketSubject<Message>;
|
|
3507
3507
|
reset(): void;
|
|
3508
3508
|
}
|
|
@@ -36,5 +36,5 @@ export interface Connect
|
|
|
36
36
|
| [getMoreRows(sourceRef)](./foundation-comms.connect.getmorerows.md) | Requests additional rows of data for the specified source reference. |
|
|
37
37
|
| [request(resourceName, params)](./foundation-comms.connect.request.md) | Sends a request to the server to retrieve data or perform an action. |
|
|
38
38
|
| [snapshot(resourceName, params)](./foundation-comms.connect.snapshot.md) | Retrieves a snapshot of data for the specified resource. |
|
|
39
|
-
| [stream(resourceName, onMessage, onError, params
|
|
39
|
+
| [stream(resourceName, onMessage, onError, params)](./foundation-comms.connect.stream.md) | Starts listening for updates on the specified resource. |
|
|
40
40
|
|
|
@@ -9,7 +9,7 @@ Starts listening for updates on the specified resource.
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
stream(resourceName: string, onMessage: Function, onError: Function, params?: any
|
|
12
|
+
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
@@ -20,7 +20,6 @@ stream(resourceName: string, onMessage: Function, onError: Function, params?: an
|
|
|
20
20
|
| onMessage | Function | A callback function to handle received messages. |
|
|
21
21
|
| onError | Function | A callback function to handle errors. |
|
|
22
22
|
| params | any | _(Optional)_ Additional parameters to pass to the server. |
|
|
23
|
-
| withAutoTeardown | boolean | _(Optional)_ |
|
|
24
23
|
|
|
25
24
|
**Returns:**
|
|
26
25
|
|
|
@@ -47,5 +47,5 @@ export declare class DefaultConnect implements Connect
|
|
|
47
47
|
| [send(message, needsHandling)](./foundation-comms.defaultconnect.send.md) | | |
|
|
48
48
|
| [setValidSession(valid)](./foundation-comms.defaultconnect.setvalidsession.md) | | |
|
|
49
49
|
| [snapshot(resourceName, params)](./foundation-comms.defaultconnect.snapshot.md) | | |
|
|
50
|
-
| [stream(resourceName, onMessage, onError, params
|
|
50
|
+
| [stream(resourceName, onMessage, onError, params)](./foundation-comms.defaultconnect.stream.md) | | |
|
|
51
51
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
**Signature:**
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
stream(resourceName: string, onMessage: Function, onError: Function, params?: any
|
|
10
|
+
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
@@ -18,7 +18,6 @@ stream(resourceName: string, onMessage: Function, onError: Function, params?: an
|
|
|
18
18
|
| onMessage | Function | |
|
|
19
19
|
| onError | Function | |
|
|
20
20
|
| params | any | _(Optional)_ |
|
|
21
|
-
| withAutoTeardown | boolean | _(Optional)_ |
|
|
22
21
|
|
|
23
22
|
**Returns:**
|
|
24
23
|
|
|
@@ -40,5 +40,5 @@ export declare class DefaultSocket implements Socket
|
|
|
40
40
|
| [connect(host, connectOptions, reconnectOptions)](./foundation-comms.defaultsocket.connect.md) | | |
|
|
41
41
|
| [reset()](./foundation-comms.defaultsocket.reset.md) | | |
|
|
42
42
|
| [send(message, needsHandling)](./foundation-comms.defaultsocket.send.md) | | |
|
|
43
|
-
| [sendForStream(message, onMessage, onError,
|
|
43
|
+
| [sendForStream(message, onMessage, onError, onComplete)](./foundation-comms.defaultsocket.sendforstream.md) | | |
|
|
44
44
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
**Signature:**
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function,
|
|
10
|
+
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
@@ -17,7 +17,6 @@ sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Functi
|
|
|
17
17
|
| message | [Message](./foundation-comms.message.md)<!-- --><T \| any> | |
|
|
18
18
|
| onMessage | Function | |
|
|
19
19
|
| onError | Function | |
|
|
20
|
-
| withAutoTeardown | boolean | _(Optional)_ |
|
|
21
20
|
| onComplete | Function | _(Optional)_ |
|
|
22
21
|
|
|
23
22
|
**Returns:**
|
|
@@ -20,6 +20,6 @@ export interface Socket extends Omit<SocketStatus, 'serialize' | 'onClose' | 're
|
|
|
20
20
|
| [connect(host, options, reconnectOptions)](./foundation-comms.socket.connect.md) | |
|
|
21
21
|
| [reset()](./foundation-comms.socket.reset.md) | Disconnects the socket and clears all subscriptions |
|
|
22
22
|
| [send(message, needsHandling)](./foundation-comms.socket.send.md) | |
|
|
23
|
-
| [sendForStream(message, onMessage, onError,
|
|
23
|
+
| [sendForStream(message, onMessage, onError, onComplete)](./foundation-comms.socket.sendforstream.md) | |
|
|
24
24
|
| [socketMessages()](./foundation-comms.socket.socketmessages.md) | |
|
|
25
25
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
**Signature:**
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function,
|
|
10
|
+
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
@@ -17,7 +17,6 @@ sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Functi
|
|
|
17
17
|
| message | [Message](./foundation-comms.message.md)<!-- --><T \| any> | |
|
|
18
18
|
| onMessage | Function | |
|
|
19
19
|
| onError | Function | |
|
|
20
|
-
| withAutoTeardown | boolean | _(Optional)_ |
|
|
21
20
|
| onComplete | Function | _(Optional)_ |
|
|
22
21
|
|
|
23
22
|
**Returns:**
|
package/docs/api-report.md
CHANGED
|
@@ -162,7 +162,7 @@ export interface Connect {
|
|
|
162
162
|
// @internal
|
|
163
163
|
setValidSession(valid: boolean): void;
|
|
164
164
|
snapshot(resourceName: string, params?: any): Promise<Message>;
|
|
165
|
-
stream(resourceName: string, onMessage: Function, onError: Function, params?: any
|
|
165
|
+
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
// @internal
|
|
@@ -573,7 +573,7 @@ export class DefaultConnect implements Connect {
|
|
|
573
573
|
// (undocumented)
|
|
574
574
|
socket: Socket;
|
|
575
575
|
// (undocumented)
|
|
576
|
-
stream(resourceName: string, onMessage: Function, onError: Function, params?: any
|
|
576
|
+
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
|
577
577
|
}
|
|
578
578
|
|
|
579
579
|
// @public
|
|
@@ -1042,7 +1042,7 @@ export class DefaultSocket implements Socket {
|
|
|
1042
1042
|
// (undocumented)
|
|
1043
1043
|
send<T>(message: Message<T | any>, needsHandling?: boolean): Promise<Message | any>;
|
|
1044
1044
|
// (undocumented)
|
|
1045
|
-
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function,
|
|
1045
|
+
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
|
|
1046
1046
|
// (undocumented)
|
|
1047
1047
|
socketMessages: () => SocketSubject<Message>;
|
|
1048
1048
|
}
|
|
@@ -1896,7 +1896,7 @@ export interface Socket extends Omit<SocketStatus, 'serialize' | 'onClose' | 're
|
|
|
1896
1896
|
// (undocumented)
|
|
1897
1897
|
send<T>(message: Message<T | any>, needsHandling?: boolean): Promise<Message | any>;
|
|
1898
1898
|
// (undocumented)
|
|
1899
|
-
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function,
|
|
1899
|
+
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
|
|
1900
1900
|
// (undocumented)
|
|
1901
1901
|
socketMessages(): SocketSubject<Message>;
|
|
1902
1902
|
}
|
|
@@ -1955,7 +1955,7 @@ export class SocketMock implements Socket {
|
|
|
1955
1955
|
// (undocumented)
|
|
1956
1956
|
send<T>(message: Message<any>): Promise<Message | any>;
|
|
1957
1957
|
// (undocumented)
|
|
1958
|
-
sendForStream<T>(message: Message<any>, onMessage: Function, onError: Function,
|
|
1958
|
+
sendForStream<T>(message: Message<any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
|
|
1959
1959
|
// (undocumented)
|
|
1960
1960
|
socketMessages(): SocketSubject<Message>;
|
|
1961
1961
|
// (undocumented)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-comms",
|
|
3
3
|
"description": "Genesis Foundation UI Comms",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.171.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -66,21 +66,21 @@
|
|
|
66
66
|
"test:debug": "genx test --debug"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@genesislcap/foundation-testing": "14.
|
|
70
|
-
"@genesislcap/genx": "14.
|
|
71
|
-
"@genesislcap/rollup-builder": "14.
|
|
72
|
-
"@genesislcap/ts-builder": "14.
|
|
73
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
74
|
-
"@genesislcap/vite-builder": "14.
|
|
75
|
-
"@genesislcap/webpack-builder": "14.
|
|
69
|
+
"@genesislcap/foundation-testing": "14.171.0",
|
|
70
|
+
"@genesislcap/genx": "14.171.0",
|
|
71
|
+
"@genesislcap/rollup-builder": "14.171.0",
|
|
72
|
+
"@genesislcap/ts-builder": "14.171.0",
|
|
73
|
+
"@genesislcap/uvu-playwright-builder": "14.171.0",
|
|
74
|
+
"@genesislcap/vite-builder": "14.171.0",
|
|
75
|
+
"@genesislcap/webpack-builder": "14.171.0",
|
|
76
76
|
"@types/js-cookie": "^3.0.2",
|
|
77
77
|
"@types/json-schema": "^7.0.11",
|
|
78
78
|
"@types/webappsec-credential-management": "^0.6.2",
|
|
79
79
|
"rimraf": "^3.0.2"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@genesislcap/foundation-logger": "14.
|
|
83
|
-
"@genesislcap/foundation-utils": "14.
|
|
82
|
+
"@genesislcap/foundation-logger": "14.171.0",
|
|
83
|
+
"@genesislcap/foundation-utils": "14.171.0",
|
|
84
84
|
"@microsoft/fast-element": "^1.12.0",
|
|
85
85
|
"@microsoft/fast-foundation": "^2.49.4",
|
|
86
86
|
"analytics": "^0.8.0",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"publishConfig": {
|
|
100
100
|
"access": "public"
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "312d2536cdfdd0c1b2c00dd623cc863edac31d7a"
|
|
103
103
|
}
|