foundation-comms.connect.streamwithoutautoteardown
Home > @genesislcap/foundation-comms > Connect > streamWithoutAutoTeardown
Connect.streamWithoutAutoTeardown() method
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Warning: This API is now obsolete.
- Use
streaminstead. Will be removed in v15.
Starts listening for updates on the specified resource without auto-teardown.
Signature:
streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: DataserverParams): SocketObservable<Message>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
resourceName |
string |
The name of the resource to listen for updates on. |
|
onMessage |
Function |
A callback function to handle received messages. |
|
onError |
Function |
A callback function to handle errors. |
|
params |
(Optional) Additional parameters to pass to the server. |
Returns:
An observable that emits messages received from the server.