@genesislcap/foundation-comms 14.170.0-genxgit.1 → 14.170.1-alpha-2fe40dd.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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): SocketObservable<Message>;
92
+ stream(resourceName: string, onMessage: Function, onError: Function, params?: any, withAutoTeardown?: boolean): 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): SocketObservable<Message>;
173
+ stream(resourceName: string, onMessage: Function, onError: Function, params?: any, withAutoTeardown?: boolean): 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,EAA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AU,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"}
@@ -121,7 +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, onComplete?: Function): Observable<Message>;
124
+ sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, withAutoTeardown?: boolean, 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, onComplete?: Function): Observable<Message>;
167
+ sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, withAutoTeardown?: boolean, 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,qBAAa,aAAa,CAAC,CAAC,CAAE,SAAQ,OAAO,CAAC,CAAC,CAAC;;CAI/C;AAED;;;;GAIG;AACH,qBAAa,gBAAgB,CAAC,CAAC,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;gBACxC,GAAG,IAAI,EAAE,GAAG,EAAE;CAG3B;AAED;;;GAGG;AACH,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,CAAC;AAE9C;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,eAAe,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAEpC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,C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,cAAc,OAAO,CAAC,CAAoB;IAEtE,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,cAAc;IAOtB,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"}
@@ -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, onComplete?: Function): Observable<Message>;
21
+ sendForStream<T>(message: Message<any>, onMessage: Function, onError: Function, withwithAutoTeardown?: boolean, 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,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rB,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,IAAI,IAAI;IAElB,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,OAAO,GAAG,GAAG,CAAC;IAItD,aAAa,CAAC,CAAC,EACpB,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,EACrB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,oBAAoB,CAAC,EAAE,OAAO,EAC9B,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, withAutoTeardown = true) {
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, withAutoTeardown, () => {
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, onComplete) {
380
+ sendForStream(message, onMessage, onError, withAutoTeardown = true, onComplete) {
381
381
  if (!this.isConnected) {
382
382
  return throwError(() => new Error('WebSocket connection is closed'));
383
383
  }
@@ -408,10 +408,12 @@ let DefaultSocket = class DefaultSocket {
408
408
  },
409
409
  });
410
410
  return () => {
411
- destroyNotifier.complete();
412
- this.sendDataLogoff(message.SOURCE_REF);
413
- this.removeMessageHandler(message.SOURCE_REF);
414
- onComplete && onComplete();
411
+ if (withAutoTeardown) {
412
+ destroyNotifier.complete();
413
+ this.sendDataLogoff(message.SOURCE_REF);
414
+ this.removeMessageHandler(message.SOURCE_REF);
415
+ onComplete && onComplete();
416
+ }
415
417
  };
416
418
  });
417
419
  }
@@ -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, onComplete) {
18
+ sendForStream(message, onMessage, onError, withwithAutoTeardown, onComplete) {
19
19
  return from(Promise.resolve(this.nextMessage));
20
20
  }
21
21
  socketMessages() {
@@ -1975,6 +1975,14 @@
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
+ },
1978
1986
  {
1979
1987
  "kind": "Content",
1980
1988
  "text": "): "
@@ -2004,8 +2012,8 @@
2004
2012
  ],
2005
2013
  "isOptional": false,
2006
2014
  "returnTypeTokenRange": {
2007
- "startIndex": 9,
2008
- "endIndex": 13
2015
+ "startIndex": 11,
2016
+ "endIndex": 15
2009
2017
  },
2010
2018
  "releaseTag": "Public",
2011
2019
  "overloadIndex": 1,
@@ -2041,6 +2049,14 @@
2041
2049
  "endIndex": 8
2042
2050
  },
2043
2051
  "isOptional": true
2052
+ },
2053
+ {
2054
+ "parameterName": "withAutoTeardown",
2055
+ "parameterTypeTokenRange": {
2056
+ "startIndex": 9,
2057
+ "endIndex": 10
2058
+ },
2059
+ "isOptional": true
2044
2060
  }
2045
2061
  ],
2046
2062
  "name": "stream"
@@ -8095,6 +8111,14 @@
8095
8111
  "kind": "Content",
8096
8112
  "text": "any"
8097
8113
  },
8114
+ {
8115
+ "kind": "Content",
8116
+ "text": ", withAutoTeardown?: "
8117
+ },
8118
+ {
8119
+ "kind": "Content",
8120
+ "text": "boolean"
8121
+ },
8098
8122
  {
8099
8123
  "kind": "Content",
8100
8124
  "text": "): "
@@ -8124,8 +8148,8 @@
8124
8148
  ],
8125
8149
  "isStatic": false,
8126
8150
  "returnTypeTokenRange": {
8127
- "startIndex": 9,
8128
- "endIndex": 13
8151
+ "startIndex": 11,
8152
+ "endIndex": 15
8129
8153
  },
8130
8154
  "releaseTag": "Public",
8131
8155
  "isProtected": false,
@@ -8162,6 +8186,14 @@
8162
8186
  "endIndex": 8
8163
8187
  },
8164
8188
  "isOptional": true
8189
+ },
8190
+ {
8191
+ "parameterName": "withAutoTeardown",
8192
+ "parameterTypeTokenRange": {
8193
+ "startIndex": 9,
8194
+ "endIndex": 10
8195
+ },
8196
+ "isOptional": true
8165
8197
  }
8166
8198
  ],
8167
8199
  "isOptional": false,
@@ -16056,6 +16088,14 @@
16056
16088
  "text": "Function",
16057
16089
  "canonicalReference": "!Function:interface"
16058
16090
  },
16091
+ {
16092
+ "kind": "Content",
16093
+ "text": ", withAutoTeardown?: "
16094
+ },
16095
+ {
16096
+ "kind": "Content",
16097
+ "text": "boolean"
16098
+ },
16059
16099
  {
16060
16100
  "kind": "Content",
16061
16101
  "text": ", onComplete?: "
@@ -16107,8 +16147,8 @@
16107
16147
  ],
16108
16148
  "isStatic": false,
16109
16149
  "returnTypeTokenRange": {
16110
- "startIndex": 10,
16111
- "endIndex": 14
16150
+ "startIndex": 12,
16151
+ "endIndex": 16
16112
16152
  },
16113
16153
  "releaseTag": "Public",
16114
16154
  "isProtected": false,
@@ -16139,12 +16179,20 @@
16139
16179
  "isOptional": false
16140
16180
  },
16141
16181
  {
16142
- "parameterName": "onComplete",
16182
+ "parameterName": "withAutoTeardown",
16143
16183
  "parameterTypeTokenRange": {
16144
16184
  "startIndex": 8,
16145
16185
  "endIndex": 9
16146
16186
  },
16147
16187
  "isOptional": true
16188
+ },
16189
+ {
16190
+ "parameterName": "onComplete",
16191
+ "parameterTypeTokenRange": {
16192
+ "startIndex": 10,
16193
+ "endIndex": 11
16194
+ },
16195
+ "isOptional": true
16148
16196
  }
16149
16197
  ],
16150
16198
  "isOptional": false,
@@ -24444,6 +24492,14 @@
24444
24492
  "text": "Function",
24445
24493
  "canonicalReference": "!Function:interface"
24446
24494
  },
24495
+ {
24496
+ "kind": "Content",
24497
+ "text": ", withAutoTeardown?: "
24498
+ },
24499
+ {
24500
+ "kind": "Content",
24501
+ "text": "boolean"
24502
+ },
24447
24503
  {
24448
24504
  "kind": "Content",
24449
24505
  "text": ", onComplete?: "
@@ -24482,8 +24538,8 @@
24482
24538
  ],
24483
24539
  "isOptional": false,
24484
24540
  "returnTypeTokenRange": {
24485
- "startIndex": 10,
24486
- "endIndex": 14
24541
+ "startIndex": 12,
24542
+ "endIndex": 16
24487
24543
  },
24488
24544
  "releaseTag": "Public",
24489
24545
  "overloadIndex": 1,
@@ -24513,12 +24569,20 @@
24513
24569
  "isOptional": false
24514
24570
  },
24515
24571
  {
24516
- "parameterName": "onComplete",
24572
+ "parameterName": "withAutoTeardown",
24517
24573
  "parameterTypeTokenRange": {
24518
24574
  "startIndex": 8,
24519
24575
  "endIndex": 9
24520
24576
  },
24521
24577
  "isOptional": true
24578
+ },
24579
+ {
24580
+ "parameterName": "onComplete",
24581
+ "parameterTypeTokenRange": {
24582
+ "startIndex": 10,
24583
+ "endIndex": 11
24584
+ },
24585
+ "isOptional": true
24522
24586
  }
24523
24587
  ],
24524
24588
  "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): SocketObservable<Message>;
256
+ stream(resourceName: string, onMessage: Function, onError: Function, params?: any, withAutoTeardown?: boolean): 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): SocketObservable<Message>;
1138
+ stream(resourceName: string, onMessage: Function, onError: Function, params?: any, withAutoTeardown?: boolean): 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, onComplete?: Function): Observable<Message>;
1723
+ sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, withAutoTeardown?: boolean, 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, onComplete?: Function): Observable<Message>;
3393
+ sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, withAutoTeardown?: boolean, 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, onComplete?: Function): Observable<Message>;
3505
+ sendForStream<T>(message: Message<any>, onMessage: Function, onError: Function, withwithAutoTeardown?: boolean, 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)](./foundation-comms.connect.stream.md) | Starts listening for updates on the specified resource. |
39
+ | [stream(resourceName, onMessage, onError, params, withAutoTeardown)](./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): SocketObservable<Message>;
12
+ stream(resourceName: string, onMessage: Function, onError: Function, params?: any, withAutoTeardown?: boolean): SocketObservable<Message>;
13
13
  ```
14
14
 
15
15
  ## Parameters
@@ -20,6 +20,7 @@ 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)_ |
23
24
 
24
25
  **Returns:**
25
26
 
@@ -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)](./foundation-comms.defaultconnect.stream.md) | | |
50
+ | [stream(resourceName, onMessage, onError, params, withAutoTeardown)](./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): SocketObservable<Message>;
10
+ stream(resourceName: string, onMessage: Function, onError: Function, params?: any, withAutoTeardown?: boolean): SocketObservable<Message>;
11
11
  ```
12
12
 
13
13
  ## Parameters
@@ -18,6 +18,7 @@ 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)_ |
21
22
 
22
23
  **Returns:**
23
24
 
@@ -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, onComplete)](./foundation-comms.defaultsocket.sendforstream.md) | | |
43
+ | [sendForStream(message, onMessage, onError, withAutoTeardown, 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, onComplete?: Function): Observable<Message>;
10
+ sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, withAutoTeardown?: boolean, onComplete?: Function): Observable<Message>;
11
11
  ```
12
12
 
13
13
  ## Parameters
@@ -17,6 +17,7 @@ sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Functi
17
17
  | message | [Message](./foundation-comms.message.md)<!-- -->&lt;T \| any&gt; | |
18
18
  | onMessage | Function | |
19
19
  | onError | Function | |
20
+ | withAutoTeardown | boolean | _(Optional)_ |
20
21
  | onComplete | Function | _(Optional)_ |
21
22
 
22
23
  **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, onComplete)](./foundation-comms.socket.sendforstream.md) | |
23
+ | [sendForStream(message, onMessage, onError, withAutoTeardown, 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, onComplete?: Function): Observable<Message>;
10
+ sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, withAutoTeardown?: boolean, onComplete?: Function): Observable<Message>;
11
11
  ```
12
12
 
13
13
  ## Parameters
@@ -17,6 +17,7 @@ sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Functi
17
17
  | message | [Message](./foundation-comms.message.md)<!-- -->&lt;T \| any&gt; | |
18
18
  | onMessage | Function | |
19
19
  | onError | Function | |
20
+ | withAutoTeardown | boolean | _(Optional)_ |
20
21
  | onComplete | Function | _(Optional)_ |
21
22
 
22
23
  **Returns:**
@@ -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): SocketObservable<Message>;
165
+ stream(resourceName: string, onMessage: Function, onError: Function, params?: any, withAutoTeardown?: boolean): 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): SocketObservable<Message>;
576
+ stream(resourceName: string, onMessage: Function, onError: Function, params?: any, withAutoTeardown?: boolean): 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, onComplete?: Function): Observable<Message>;
1045
+ sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, withAutoTeardown?: boolean, 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, onComplete?: Function): Observable<Message>;
1899
+ sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, withAutoTeardown?: boolean, 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, onComplete?: Function): Observable<Message>;
1958
+ sendForStream<T>(message: Message<any>, onMessage: Function, onError: Function, withwithAutoTeardown?: boolean, 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.170.0-genxgit.1",
4
+ "version": "14.170.1-alpha-2fe40dd.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.170.0-genxgit.1",
70
- "@genesislcap/genx": "14.170.0-genxgit.1",
71
- "@genesislcap/rollup-builder": "14.170.0-genxgit.1",
72
- "@genesislcap/ts-builder": "14.170.0-genxgit.1",
73
- "@genesislcap/uvu-playwright-builder": "14.170.0-genxgit.1",
74
- "@genesislcap/vite-builder": "14.170.0-genxgit.1",
75
- "@genesislcap/webpack-builder": "14.170.0-genxgit.1",
69
+ "@genesislcap/foundation-testing": "14.170.1-alpha-2fe40dd.0",
70
+ "@genesislcap/genx": "14.170.1-alpha-2fe40dd.0",
71
+ "@genesislcap/rollup-builder": "14.170.1-alpha-2fe40dd.0",
72
+ "@genesislcap/ts-builder": "14.170.1-alpha-2fe40dd.0",
73
+ "@genesislcap/uvu-playwright-builder": "14.170.1-alpha-2fe40dd.0",
74
+ "@genesislcap/vite-builder": "14.170.1-alpha-2fe40dd.0",
75
+ "@genesislcap/webpack-builder": "14.170.1-alpha-2fe40dd.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.170.0-genxgit.1",
83
- "@genesislcap/foundation-utils": "14.170.0-genxgit.1",
82
+ "@genesislcap/foundation-logger": "14.170.1-alpha-2fe40dd.0",
83
+ "@genesislcap/foundation-utils": "14.170.1-alpha-2fe40dd.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": "63c42feb1ea6f7bc16d8bd50ae4d90af80b7a9e5"
102
+ "gitHead": "9ba958a4c69abeeb2c5a7eb80eec47540d381a74"
103
103
  }