@genesislcap/foundation-comms 14.183.2 → 14.183.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -90,6 +90,16 @@ export interface Connect {
90
90
  * @returns An observable that emits messages received from the server.
91
91
  */
92
92
  stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
93
+ /**
94
+ * Starts listening for updates on the specified resource without auto-teardown.
95
+ * @alpha
96
+ * @param resourceName - The name of the resource to listen for updates on.
97
+ * @param onMessage - A callback function to handle received messages.
98
+ * @param onError - A callback function to handle errors.
99
+ * @param params - Additional parameters to pass to the server.
100
+ * @returns An observable that emits messages received from the server.
101
+ */
102
+ streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
93
103
  /**
94
104
  * Requests additional rows of data for the specified source reference.
95
105
  * @public
@@ -174,6 +184,7 @@ export declare class DefaultConnect implements Connect {
174
184
  disconnect(): void;
175
185
  snapshot(resourceName: string, params?: any): Promise<Message>;
176
186
  stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
187
+ streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
177
188
  getMoreRows(sourceRef: string): Promise<Message>;
178
189
  getMoreColumns(sourceRef: string): Promise<Message>;
179
190
  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,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,EAAE,MAAM,EACpB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,GAAG,GACX,gBAAgB,CAAC,OAAO,CAAC;IAarB,yBAAyB,CAC9B,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,GAAG,GACX,gBAAgB,CAAC,OAAO,CAAC;IASf,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"}
@@ -52,6 +52,7 @@ export declare class DefaultHttpConnect implements Connect {
52
52
  disconnect(): void;
53
53
  snapshot(resourceName: string, params?: any): Promise<Message>;
54
54
  stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
55
+ streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message<any>>;
55
56
  private getMessage;
56
57
  getMoreRows(sourceRef: string): Promise<Message>;
57
58
  getMoreColumns(sourceRef: string): Promise<Message>;
@@ -1 +1 @@
1
- {"version":3,"file":"http.connect.d.ts","sourceRoot":"","sources":["../../../src/connect/http.connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAG5E,OAAO,EACL,eAAe,EAKf,UAAU,EAGX,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EACL,YAAY,EAEZ,OAAO,EACP,cAAc,EAGd,aAAa,EACd,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAgB5C;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,iBAqBtC,CAAC;AAEF;;;GAGG;AACH,qBAAa,kBAAmB,YAAW,OAAO;IAqCjC,IAAI,EAAE,IAAI;IACP,OAAO,CAAC,cAAc;IAC7B,OAAO,CAAC,OAAO;IACb,OAAO,CAAC,SAAS;IACZ,OAAO,CAAC,UAAU;IACL,OAAO,CAAC,MAAM;IAxCtC,IAAI,EAAE,MAAM,CAAC;IAGb,SAAS,UAAS;IAGzB,OAAO,CAAC,YAAY,CAAkB;IAItC,kBAAkB,2BAA0C;IAE5D,YAAY,EAAE,UAAU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AyB,CACvB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,GAAG,GACX,gBAAgB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YAInB,UAAU;IAMX,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAShD,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,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"}
@@ -136,6 +136,15 @@ export interface Socket extends Omit<SocketStatus, 'serialize' | 'onClose' | 're
136
136
  reset(): void;
137
137
  send<T>(message: Message<T | any>, needsHandling?: boolean): Promise<Message | any>;
138
138
  sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
139
+ /**
140
+ * Sends a message and returns an observable that emits messages received from the server.
141
+ * @alpha
142
+ * @param message - The message to send.
143
+ * @param onMessage - The function to call when a message is received.
144
+ * @param onError - The function to call when an error is received.
145
+ * @returns An observable that emits messages received from the server.
146
+ */
147
+ sendForStreamWithoutTeardown<T>(message: Message<T | any>, onMessage: Function, onError: Function): Observable<Message>;
139
148
  socketMessages(): SocketSubject<Message>;
140
149
  }
141
150
  /**
@@ -188,6 +197,7 @@ export declare class DefaultSocket implements Socket {
188
197
  private cleanMessages;
189
198
  send<T>(message: Message<T | any>, needsHandling?: boolean): Promise<Message | any>;
190
199
  sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
200
+ sendForStreamWithoutTeardown<T>(message: Message<T | any>, onMessage: Function, onError: Function): Observable<Message>;
191
201
  socketMessages: () => SocketSubject<Message>;
192
202
  private setMessageHandler;
193
203
  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,8BAA8B,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAGrE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAM,OAAO,EAAE,YAAY,EAAyB,MAAM,MAAM,CAAC;AAG9F,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAEL,OAAO,EACP,cAAc,EAGd,WAAW,EACX,WAAW,EACZ,MAAM,WAAW,CAAC;AACnB,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,SAA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IA0Cf,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;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"}
@@ -24,6 +24,7 @@ export declare class ConnectMock implements Connect {
24
24
  getAvailableResources(params?: RequestParams): Promise<Message>;
25
25
  snapshot(resourceName: string, params?: any): Promise<Message>;
26
26
  stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
27
+ streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
27
28
  getMoreRows(sourceRef: string): Promise<Message<any>>;
28
29
  getMoreColumns(sourceRef: string): Promise<Message<any>>;
29
30
  dataLogoff(sourceRef: string): Promise<Message<any>>;
@@ -1 +1 @@
1
- {"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/connect/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAQ,UAAU,EAAE,MAAM,MAAM,CAAC;AACzD,OAAO,EACL,YAAY,EACZ,OAAO,EACP,OAAO,EACP,QAAQ,EACR,aAAa,EACb,UAAU,EACV,gBAAgB,EACjB,MAAM,WAAW,CAAC;AAEnB;;GAEG;AACH,qBAAa,WAAY,YAAW,OAAO;IACzC,WAAW,EAAE,OAAO,CAAQ;IAC5B,SAAS,EAAE,OAAO,CAAS;IAC3B,MAAM,EAAE,UAAU,C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U,IAAI,IAAI;IAElB,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIpD,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC;IAKvE,qBAAqB,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC;IAK/D,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAI9D,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,GAAG,GACX,gBAAgB,CAAC,OAAO,CAAC;IAI5B,yBAAyB,CACvB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,GAAG,GACX,gBAAgB,CAAC,OAAO,CAAC;IAI5B,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAIrD,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAIxD,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAIpD,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;CAGlD"}
@@ -19,6 +19,7 @@ export declare class SocketMock implements Socket {
19
19
  disconnect(): void;
20
20
  send<T>(message: Message<any>): Promise<Message | any>;
21
21
  sendForStream<T>(message: Message<any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
22
+ sendForStreamWithoutTeardown<T>(message: Message<any>, onMessage: Function, onError: Function): Observable<Message>;
22
23
  socketMessages(): SocketSubject<Message>;
23
24
  reset(): void;
24
25
  }
@@ -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,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,UAAU,CAAC,EAAE,QAAQ,GACpB,UAAU,CAAC,OAAO,CAAC;IAIf,cAAc,IAAI,aAAa,CAAC,OAAO,CAAC;IAI/C,KAAK,IAAI,IAAI;CAGd"}
1
+ {"version":3,"file":"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;IAIf,cAAc,IAAI,aAAa,CAAC,OAAO,CAAC;IAI/C,KAAK,IAAI,IAAI;CAGd"}
@@ -96,6 +96,11 @@ let DefaultConnect = class DefaultConnect {
96
96
  });
97
97
  return resource;
98
98
  }
99
+ streamWithoutAutoTeardown(resourceName, onMessage, onError, params) {
100
+ const streamMessage = this.messageBuilder.createDataLogonMessage(resourceName, params);
101
+ logger.debug(`${streamMessage.MESSAGE_TYPE} (stream without auto-teardown) message created -> `, streamMessage);
102
+ return this.socket.sendForStreamWithoutTeardown(streamMessage, onMessage, onError);
103
+ }
99
104
  getMoreRows(sourceRef) {
100
105
  return __awaiter(this, void 0, void 0, function* () {
101
106
  const moreRowsMessage = this.messageBuilder.createMoreRowsMessage(sourceRef);
@@ -148,6 +148,9 @@ let DefaultHttpConnect = class DefaultHttpConnect {
148
148
  this.streams.get(SOURCE_REF).STREAM = stream;
149
149
  return stream;
150
150
  }
151
+ streamWithoutAutoTeardown(resourceName, onMessage, onError, params) {
152
+ return this.stream(resourceName, onMessage, onError, params);
153
+ }
151
154
  getMessage(message) {
152
155
  return __awaiter(this, void 0, void 0, function* () {
153
156
  return this.http.get(DefaultHttpConnect.getUrl(this.host, message), {
@@ -422,6 +422,16 @@ let DefaultSocket = class DefaultSocket {
422
422
  };
423
423
  });
424
424
  }
425
+ sendForStreamWithoutTeardown(message, onMessage, onError) {
426
+ if (!this.isConnected) {
427
+ return throwError(() => new Error('WebSocket connection is closed'));
428
+ }
429
+ const sendingMessageLog = `Sending Message (stream) for SourceRef: ${message.SOURCE_REF} | MessageType: ${message.MESSAGE_TYPE}`;
430
+ this.logMessageTypeFlow(message.MESSAGE_TYPE, logger.info, sendingMessageLog);
431
+ this.setMessageHandler(message, onMessage, onError, true);
432
+ this.websocket.next(message);
433
+ return this.wsMessages.pipe(filter((msg) => msg.SOURCE_REF === message.SOURCE_REF));
434
+ }
425
435
  setMessageHandler(message, onMessage, onError, isSubscription = false) {
426
436
  const settingMessageHandlerLog = `Setting Message Handler for SourceRef: ${message.SOURCE_REF} | MessageType: ${message.MESSAGE_TYPE}`;
427
437
  this.logMessageTypeFlow(message.MESSAGE_TYPE, logger.debug, settingMessageHandlerLog);
@@ -47,6 +47,9 @@ export class ConnectMock {
47
47
  stream(resourceName, onMessage, onError, params) {
48
48
  return from(Promise.resolve(this.nextMessage));
49
49
  }
50
+ streamWithoutAutoTeardown(resourceName, onMessage, onError, params) {
51
+ return from(Promise.resolve(this.nextMessage));
52
+ }
50
53
  getMoreRows(sourceRef) {
51
54
  return Promise.resolve(this.nextMessage);
52
55
  }
@@ -18,6 +18,9 @@ export class SocketMock {
18
18
  sendForStream(message, onMessage, onError, onComplete) {
19
19
  return from(Promise.resolve(this.nextMessage));
20
20
  }
21
+ sendForStreamWithoutTeardown(message, onMessage, onError) {
22
+ return from(Promise.resolve(this.nextMessage));
23
+ }
21
24
  socketMessages() {
22
25
  return this.socketMessagesSubject;
23
26
  }
@@ -7872,6 +7872,118 @@
7872
7872
  "isOptional": false,
7873
7873
  "isAbstract": false,
7874
7874
  "name": "stream"
7875
+ },
7876
+ {
7877
+ "kind": "Method",
7878
+ "canonicalReference": "@genesislcap/foundation-comms!DefaultConnect#streamWithoutAutoTeardown:member(1)",
7879
+ "docComment": "",
7880
+ "excerptTokens": [
7881
+ {
7882
+ "kind": "Content",
7883
+ "text": "streamWithoutAutoTeardown(resourceName: "
7884
+ },
7885
+ {
7886
+ "kind": "Content",
7887
+ "text": "string"
7888
+ },
7889
+ {
7890
+ "kind": "Content",
7891
+ "text": ", onMessage: "
7892
+ },
7893
+ {
7894
+ "kind": "Reference",
7895
+ "text": "Function",
7896
+ "canonicalReference": "!Function:interface"
7897
+ },
7898
+ {
7899
+ "kind": "Content",
7900
+ "text": ", onError: "
7901
+ },
7902
+ {
7903
+ "kind": "Reference",
7904
+ "text": "Function",
7905
+ "canonicalReference": "!Function:interface"
7906
+ },
7907
+ {
7908
+ "kind": "Content",
7909
+ "text": ", params?: "
7910
+ },
7911
+ {
7912
+ "kind": "Content",
7913
+ "text": "any"
7914
+ },
7915
+ {
7916
+ "kind": "Content",
7917
+ "text": "): "
7918
+ },
7919
+ {
7920
+ "kind": "Reference",
7921
+ "text": "SocketObservable",
7922
+ "canonicalReference": "@genesislcap/foundation-comms!SocketObservable:class"
7923
+ },
7924
+ {
7925
+ "kind": "Content",
7926
+ "text": "<"
7927
+ },
7928
+ {
7929
+ "kind": "Reference",
7930
+ "text": "Message",
7931
+ "canonicalReference": "@genesislcap/foundation-comms!Message:type"
7932
+ },
7933
+ {
7934
+ "kind": "Content",
7935
+ "text": ">"
7936
+ },
7937
+ {
7938
+ "kind": "Content",
7939
+ "text": ";"
7940
+ }
7941
+ ],
7942
+ "isStatic": false,
7943
+ "returnTypeTokenRange": {
7944
+ "startIndex": 9,
7945
+ "endIndex": 13
7946
+ },
7947
+ "releaseTag": "Public",
7948
+ "isProtected": false,
7949
+ "overloadIndex": 1,
7950
+ "parameters": [
7951
+ {
7952
+ "parameterName": "resourceName",
7953
+ "parameterTypeTokenRange": {
7954
+ "startIndex": 1,
7955
+ "endIndex": 2
7956
+ },
7957
+ "isOptional": false
7958
+ },
7959
+ {
7960
+ "parameterName": "onMessage",
7961
+ "parameterTypeTokenRange": {
7962
+ "startIndex": 3,
7963
+ "endIndex": 4
7964
+ },
7965
+ "isOptional": false
7966
+ },
7967
+ {
7968
+ "parameterName": "onError",
7969
+ "parameterTypeTokenRange": {
7970
+ "startIndex": 5,
7971
+ "endIndex": 6
7972
+ },
7973
+ "isOptional": false
7974
+ },
7975
+ {
7976
+ "parameterName": "params",
7977
+ "parameterTypeTokenRange": {
7978
+ "startIndex": 7,
7979
+ "endIndex": 8
7980
+ },
7981
+ "isOptional": true
7982
+ }
7983
+ ],
7984
+ "isOptional": false,
7985
+ "isAbstract": false,
7986
+ "name": "streamWithoutAutoTeardown"
7875
7987
  }
7876
7988
  ],
7877
7989
  "implementsTokenRanges": [
@@ -12381,6 +12493,118 @@
12381
12493
  "isOptional": false,
12382
12494
  "isAbstract": false,
12383
12495
  "name": "stream"
12496
+ },
12497
+ {
12498
+ "kind": "Method",
12499
+ "canonicalReference": "@genesislcap/foundation-comms!DefaultHttpConnect#streamWithoutAutoTeardown:member(1)",
12500
+ "docComment": "",
12501
+ "excerptTokens": [
12502
+ {
12503
+ "kind": "Content",
12504
+ "text": "streamWithoutAutoTeardown(resourceName: "
12505
+ },
12506
+ {
12507
+ "kind": "Content",
12508
+ "text": "string"
12509
+ },
12510
+ {
12511
+ "kind": "Content",
12512
+ "text": ", onMessage: "
12513
+ },
12514
+ {
12515
+ "kind": "Reference",
12516
+ "text": "Function",
12517
+ "canonicalReference": "!Function:interface"
12518
+ },
12519
+ {
12520
+ "kind": "Content",
12521
+ "text": ", onError: "
12522
+ },
12523
+ {
12524
+ "kind": "Reference",
12525
+ "text": "Function",
12526
+ "canonicalReference": "!Function:interface"
12527
+ },
12528
+ {
12529
+ "kind": "Content",
12530
+ "text": ", params?: "
12531
+ },
12532
+ {
12533
+ "kind": "Content",
12534
+ "text": "any"
12535
+ },
12536
+ {
12537
+ "kind": "Content",
12538
+ "text": "): "
12539
+ },
12540
+ {
12541
+ "kind": "Reference",
12542
+ "text": "SocketObservable",
12543
+ "canonicalReference": "@genesislcap/foundation-comms!SocketObservable:class"
12544
+ },
12545
+ {
12546
+ "kind": "Content",
12547
+ "text": "<"
12548
+ },
12549
+ {
12550
+ "kind": "Reference",
12551
+ "text": "Message",
12552
+ "canonicalReference": "@genesislcap/foundation-comms!Message:type"
12553
+ },
12554
+ {
12555
+ "kind": "Content",
12556
+ "text": "<any>>"
12557
+ },
12558
+ {
12559
+ "kind": "Content",
12560
+ "text": ";"
12561
+ }
12562
+ ],
12563
+ "isStatic": false,
12564
+ "returnTypeTokenRange": {
12565
+ "startIndex": 9,
12566
+ "endIndex": 13
12567
+ },
12568
+ "releaseTag": "Public",
12569
+ "isProtected": false,
12570
+ "overloadIndex": 1,
12571
+ "parameters": [
12572
+ {
12573
+ "parameterName": "resourceName",
12574
+ "parameterTypeTokenRange": {
12575
+ "startIndex": 1,
12576
+ "endIndex": 2
12577
+ },
12578
+ "isOptional": false
12579
+ },
12580
+ {
12581
+ "parameterName": "onMessage",
12582
+ "parameterTypeTokenRange": {
12583
+ "startIndex": 3,
12584
+ "endIndex": 4
12585
+ },
12586
+ "isOptional": false
12587
+ },
12588
+ {
12589
+ "parameterName": "onError",
12590
+ "parameterTypeTokenRange": {
12591
+ "startIndex": 5,
12592
+ "endIndex": 6
12593
+ },
12594
+ "isOptional": false
12595
+ },
12596
+ {
12597
+ "parameterName": "params",
12598
+ "parameterTypeTokenRange": {
12599
+ "startIndex": 7,
12600
+ "endIndex": 8
12601
+ },
12602
+ "isOptional": true
12603
+ }
12604
+ ],
12605
+ "isOptional": false,
12606
+ "isAbstract": false,
12607
+ "name": "streamWithoutAutoTeardown"
12384
12608
  }
12385
12609
  ],
12386
12610
  "implementsTokenRanges": [
@@ -15953,6 +16177,120 @@
15953
16177
  "isAbstract": false,
15954
16178
  "name": "sendForStream"
15955
16179
  },
16180
+ {
16181
+ "kind": "Method",
16182
+ "canonicalReference": "@genesislcap/foundation-comms!DefaultSocket#sendForStreamWithoutTeardown:member(1)",
16183
+ "docComment": "",
16184
+ "excerptTokens": [
16185
+ {
16186
+ "kind": "Content",
16187
+ "text": "sendForStreamWithoutTeardown<T>(message: "
16188
+ },
16189
+ {
16190
+ "kind": "Reference",
16191
+ "text": "Message",
16192
+ "canonicalReference": "@genesislcap/foundation-comms!Message:type"
16193
+ },
16194
+ {
16195
+ "kind": "Content",
16196
+ "text": "<T | any>"
16197
+ },
16198
+ {
16199
+ "kind": "Content",
16200
+ "text": ", onMessage: "
16201
+ },
16202
+ {
16203
+ "kind": "Reference",
16204
+ "text": "Function",
16205
+ "canonicalReference": "!Function:interface"
16206
+ },
16207
+ {
16208
+ "kind": "Content",
16209
+ "text": ", onError: "
16210
+ },
16211
+ {
16212
+ "kind": "Reference",
16213
+ "text": "Function",
16214
+ "canonicalReference": "!Function:interface"
16215
+ },
16216
+ {
16217
+ "kind": "Content",
16218
+ "text": "): "
16219
+ },
16220
+ {
16221
+ "kind": "Reference",
16222
+ "text": "Observable",
16223
+ "canonicalReference": "rxjs!Observable:class"
16224
+ },
16225
+ {
16226
+ "kind": "Content",
16227
+ "text": "<"
16228
+ },
16229
+ {
16230
+ "kind": "Reference",
16231
+ "text": "Message",
16232
+ "canonicalReference": "@genesislcap/foundation-comms!Message:type"
16233
+ },
16234
+ {
16235
+ "kind": "Content",
16236
+ "text": ">"
16237
+ },
16238
+ {
16239
+ "kind": "Content",
16240
+ "text": ";"
16241
+ }
16242
+ ],
16243
+ "typeParameters": [
16244
+ {
16245
+ "typeParameterName": "T",
16246
+ "constraintTokenRange": {
16247
+ "startIndex": 0,
16248
+ "endIndex": 0
16249
+ },
16250
+ "defaultTypeTokenRange": {
16251
+ "startIndex": 0,
16252
+ "endIndex": 0
16253
+ }
16254
+ }
16255
+ ],
16256
+ "isStatic": false,
16257
+ "returnTypeTokenRange": {
16258
+ "startIndex": 8,
16259
+ "endIndex": 12
16260
+ },
16261
+ "releaseTag": "Public",
16262
+ "isProtected": false,
16263
+ "overloadIndex": 1,
16264
+ "parameters": [
16265
+ {
16266
+ "parameterName": "message",
16267
+ "parameterTypeTokenRange": {
16268
+ "startIndex": 1,
16269
+ "endIndex": 3
16270
+ },
16271
+ "isOptional": false
16272
+ },
16273
+ {
16274
+ "parameterName": "onMessage",
16275
+ "parameterTypeTokenRange": {
16276
+ "startIndex": 4,
16277
+ "endIndex": 5
16278
+ },
16279
+ "isOptional": false
16280
+ },
16281
+ {
16282
+ "parameterName": "onError",
16283
+ "parameterTypeTokenRange": {
16284
+ "startIndex": 6,
16285
+ "endIndex": 7
16286
+ },
16287
+ "isOptional": false
16288
+ }
16289
+ ],
16290
+ "isOptional": false,
16291
+ "isAbstract": false,
16292
+ "name": "sendForStreamWithoutTeardown"
16293
+ },
15956
16294
  {
15957
16295
  "kind": "Property",
15958
16296
  "canonicalReference": "@genesislcap/foundation-comms!DefaultSocket#socketMessages:member",
@@ -257,6 +257,16 @@ export declare interface Connect {
257
257
  * @returns An observable that emits messages received from the server.
258
258
  */
259
259
  stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
260
+ /**
261
+ * Starts listening for updates on the specified resource without auto-teardown.
262
+ * @alpha
263
+ * @param resourceName - The name of the resource to listen for updates on.
264
+ * @param onMessage - A callback function to handle received messages.
265
+ * @param onError - A callback function to handle errors.
266
+ * @param params - Additional parameters to pass to the server.
267
+ * @returns An observable that emits messages received from the server.
268
+ */
269
+ streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
260
270
  /**
261
271
  * Requests additional rows of data for the specified source reference.
262
272
  * @public
@@ -454,6 +464,7 @@ export declare class ConnectMock implements Connect {
454
464
  getAvailableResources(params?: RequestParams): Promise<Message>;
455
465
  snapshot(resourceName: string, params?: any): Promise<Message>;
456
466
  stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
467
+ streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
457
468
  getMoreRows(sourceRef: string): Promise<Message<any>>;
458
469
  getMoreColumns(sourceRef: string): Promise<Message<any>>;
459
470
  dataLogoff(sourceRef: string): Promise<Message<any>>;
@@ -1140,6 +1151,7 @@ export declare class DefaultConnect implements Connect {
1140
1151
  disconnect(): void;
1141
1152
  snapshot(resourceName: string, params?: any): Promise<Message>;
1142
1153
  stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
1154
+ streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
1143
1155
  getMoreRows(sourceRef: string): Promise<Message>;
1144
1156
  getMoreColumns(sourceRef: string): Promise<Message>;
1145
1157
  dataLogoff(streamSourceRef: string): Promise<Message>;
@@ -1369,6 +1381,7 @@ export declare class DefaultHttpConnect implements Connect {
1369
1381
  disconnect(): void;
1370
1382
  snapshot(resourceName: string, params?: any): Promise<Message>;
1371
1383
  stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
1384
+ streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message<any>>;
1372
1385
  private getMessage;
1373
1386
  getMoreRows(sourceRef: string): Promise<Message>;
1374
1387
  getMoreColumns(sourceRef: string): Promise<Message>;
@@ -1746,6 +1759,7 @@ export declare class DefaultSocket implements Socket {
1746
1759
  private cleanMessages;
1747
1760
  send<T>(message: Message<T | any>, needsHandling?: boolean): Promise<Message | any>;
1748
1761
  sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
1762
+ sendForStreamWithoutTeardown<T>(message: Message<T | any>, onMessage: Function, onError: Function): Observable<Message>;
1749
1763
  socketMessages: () => SocketSubject<Message>;
1750
1764
  private setMessageHandler;
1751
1765
  private sendDataLogoff;
@@ -3480,6 +3494,15 @@ export declare interface Socket extends Omit<SocketStatus, 'serialize' | 'onClos
3480
3494
  reset(): void;
3481
3495
  send<T>(message: Message<T | any>, needsHandling?: boolean): Promise<Message | any>;
3482
3496
  sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
3497
+ /**
3498
+ * Sends a message and returns an observable that emits messages received from the server.
3499
+ * @alpha
3500
+ * @param message - The message to send.
3501
+ * @param onMessage - The function to call when a message is received.
3502
+ * @param onError - The function to call when an error is received.
3503
+ * @returns An observable that emits messages received from the server.
3504
+ */
3505
+ sendForStreamWithoutTeardown<T>(message: Message<T | any>, onMessage: Function, onError: Function): Observable<Message>;
3483
3506
  socketMessages(): SocketSubject<Message>;
3484
3507
  }
3485
3508
 
@@ -3606,6 +3629,7 @@ export declare class SocketMock implements Socket {
3606
3629
  disconnect(): void;
3607
3630
  send<T>(message: Message<any>): Promise<Message | any>;
3608
3631
  sendForStream<T>(message: Message<any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
3632
+ sendForStreamWithoutTeardown<T>(message: Message<any>, onMessage: Function, onError: Function): Observable<Message>;
3609
3633
  socketMessages(): SocketSubject<Message>;
3610
3634
  reset(): void;
3611
3635
  }
@@ -48,4 +48,5 @@ export declare class DefaultConnect implements Connect
48
48
  | [setValidSession(valid)](./foundation-comms.defaultconnect.setvalidsession.md) | | |
49
49
  | [snapshot(resourceName, params)](./foundation-comms.defaultconnect.snapshot.md) | | |
50
50
  | [stream(resourceName, onMessage, onError, params)](./foundation-comms.defaultconnect.stream.md) | | |
51
+ | [streamWithoutAutoTeardown(resourceName, onMessage, onError, params)](./foundation-comms.defaultconnect.streamwithoutautoteardown.md) | | |
51
52
 
@@ -0,0 +1,25 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [DefaultConnect](./foundation-comms.defaultconnect.md) &gt; [streamWithoutAutoTeardown](./foundation-comms.defaultconnect.streamwithoutautoteardown.md)
4
+
5
+ ## DefaultConnect.streamWithoutAutoTeardown() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | resourceName | string | |
18
+ | onMessage | Function | |
19
+ | onError | Function | |
20
+ | params | any | _(Optional)_ |
21
+
22
+ **Returns:**
23
+
24
+ [SocketObservable](./foundation-comms.socketobservable.md)<!-- -->&lt;[Message](./foundation-comms.message.md)<!-- -->&gt;
25
+
@@ -49,4 +49,5 @@ export declare class DefaultHttpConnect implements Connect
49
49
  | [setValidSession(valid)](./foundation-comms.defaulthttpconnect.setvalidsession.md) | | |
50
50
  | [snapshot(resourceName, params)](./foundation-comms.defaulthttpconnect.snapshot.md) | | |
51
51
  | [stream(resourceName, onMessage, onError, params)](./foundation-comms.defaulthttpconnect.stream.md) | | |
52
+ | [streamWithoutAutoTeardown(resourceName, onMessage, onError, params)](./foundation-comms.defaulthttpconnect.streamwithoutautoteardown.md) | | |
52
53
 
@@ -0,0 +1,25 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [DefaultHttpConnect](./foundation-comms.defaulthttpconnect.md) &gt; [streamWithoutAutoTeardown](./foundation-comms.defaulthttpconnect.streamwithoutautoteardown.md)
4
+
5
+ ## DefaultHttpConnect.streamWithoutAutoTeardown() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message<any>>;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | resourceName | string | |
18
+ | onMessage | Function | |
19
+ | onError | Function | |
20
+ | params | any | _(Optional)_ |
21
+
22
+ **Returns:**
23
+
24
+ [SocketObservable](./foundation-comms.socketobservable.md)<!-- -->&lt;[Message](./foundation-comms.message.md)<!-- -->&lt;any&gt;&gt;
25
+
@@ -42,4 +42,5 @@ export declare class DefaultSocket implements Socket
42
42
  | [reset()](./foundation-comms.defaultsocket.reset.md) | | |
43
43
  | [send(message, needsHandling)](./foundation-comms.defaultsocket.send.md) | | |
44
44
  | [sendForStream(message, onMessage, onError, onComplete)](./foundation-comms.defaultsocket.sendforstream.md) | | |
45
+ | [sendForStreamWithoutTeardown(message, onMessage, onError)](./foundation-comms.defaultsocket.sendforstreamwithoutteardown.md) | | |
45
46
 
@@ -0,0 +1,24 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [DefaultSocket](./foundation-comms.defaultsocket.md) &gt; [sendForStreamWithoutTeardown](./foundation-comms.defaultsocket.sendforstreamwithoutteardown.md)
4
+
5
+ ## DefaultSocket.sendForStreamWithoutTeardown() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ sendForStreamWithoutTeardown<T>(message: Message<T | any>, onMessage: Function, onError: Function): Observable<Message>;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | message | [Message](./foundation-comms.message.md)<!-- -->&lt;T \| any&gt; | |
18
+ | onMessage | Function | |
19
+ | onError | Function | |
20
+
21
+ **Returns:**
22
+
23
+ Observable&lt;[Message](./foundation-comms.message.md)<!-- -->&gt;
24
+
@@ -166,6 +166,8 @@ export interface Connect {
166
166
  setValidSession(valid: boolean): void;
167
167
  snapshot(resourceName: string, params?: any): Promise<Message>;
168
168
  stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
169
+ // @alpha
170
+ streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
169
171
  }
170
172
 
171
173
  // @internal
@@ -262,6 +264,8 @@ export class ConnectMock implements Connect {
262
264
  socket: SocketMock;
263
265
  // (undocumented)
264
266
  stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
267
+ // (undocumented)
268
+ streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
265
269
  }
266
270
 
267
271
  // Warning: (ae-internal-missing-underscore) The name "CoreUserPermissions" should be prefixed with an underscore because the declaration is marked as @internal
@@ -555,6 +559,8 @@ export class DefaultConnect implements Connect {
555
559
  socket: Socket;
556
560
  // (undocumented)
557
561
  stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
562
+ // (undocumented)
563
+ streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
558
564
  }
559
565
 
560
566
  // @public
@@ -819,6 +825,8 @@ export class DefaultHttpConnect implements Connect {
819
825
  snapshot(resourceName: string, params?: any): Promise<Message>;
820
826
  // (undocumented)
821
827
  stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
828
+ // (undocumented)
829
+ streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message<any>>;
822
830
  }
823
831
 
824
832
  // @public
@@ -1037,6 +1045,8 @@ export class DefaultSocket implements Socket {
1037
1045
  // (undocumented)
1038
1046
  sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
1039
1047
  // (undocumented)
1048
+ sendForStreamWithoutTeardown<T>(message: Message<T | any>, onMessage: Function, onError: Function): Observable<Message>;
1049
+ // (undocumented)
1040
1050
  socketMessages: () => SocketSubject<Message>;
1041
1051
  protected user: User_2;
1042
1052
  }
@@ -1918,6 +1928,8 @@ export interface Socket extends Omit<SocketStatus, 'serialize' | 'onClose' | 're
1918
1928
  send<T>(message: Message<T | any>, needsHandling?: boolean): Promise<Message | any>;
1919
1929
  // (undocumented)
1920
1930
  sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
1931
+ // @alpha
1932
+ sendForStreamWithoutTeardown<T>(message: Message<T | any>, onMessage: Function, onError: Function): Observable<Message>;
1921
1933
  // (undocumented)
1922
1934
  socketMessages(): SocketSubject<Message>;
1923
1935
  }
@@ -1981,6 +1993,8 @@ export class SocketMock implements Socket {
1981
1993
  // (undocumented)
1982
1994
  sendForStream<T>(message: Message<any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
1983
1995
  // (undocumented)
1996
+ sendForStreamWithoutTeardown<T>(message: Message<any>, onMessage: Function, onError: Function): Observable<Message>;
1997
+ // (undocumented)
1984
1998
  socketMessages(): SocketSubject<Message>;
1985
1999
  // (undocumented)
1986
2000
  socketMessagesSubject: SocketSubject<Message<any>>;
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.183.2",
4
+ "version": "14.183.4",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -66,22 +66,22 @@
66
66
  "test:debug": "genx test --debug"
67
67
  },
68
68
  "devDependencies": {
69
- "@genesislcap/foundation-testing": "14.183.2",
70
- "@genesislcap/genx": "14.183.2",
71
- "@genesislcap/rollup-builder": "14.183.2",
72
- "@genesislcap/ts-builder": "14.183.2",
73
- "@genesislcap/uvu-playwright-builder": "14.183.2",
74
- "@genesislcap/vite-builder": "14.183.2",
75
- "@genesislcap/webpack-builder": "14.183.2",
69
+ "@genesislcap/foundation-testing": "14.183.4",
70
+ "@genesislcap/genx": "14.183.4",
71
+ "@genesislcap/rollup-builder": "14.183.4",
72
+ "@genesislcap/ts-builder": "14.183.4",
73
+ "@genesislcap/uvu-playwright-builder": "14.183.4",
74
+ "@genesislcap/vite-builder": "14.183.4",
75
+ "@genesislcap/webpack-builder": "14.183.4",
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.183.2",
83
- "@genesislcap/foundation-user": "14.183.2",
84
- "@genesislcap/foundation-utils": "14.183.2",
82
+ "@genesislcap/foundation-logger": "14.183.4",
83
+ "@genesislcap/foundation-user": "14.183.4",
84
+ "@genesislcap/foundation-utils": "14.183.4",
85
85
  "@microsoft/fast-element": "^1.12.0",
86
86
  "@microsoft/fast-foundation": "^2.49.4",
87
87
  "analytics": "^0.8.0",
@@ -101,5 +101,5 @@
101
101
  "publishConfig": {
102
102
  "access": "public"
103
103
  },
104
- "gitHead": "fcec30e0c7127ead30b2eee7ac82eddf25d75daf"
104
+ "gitHead": "ba6d12c3196029a1d6d68335fd6da494139a6afc"
105
105
  }