foundation-comms.connect
Home > @genesislcap/foundation-comms > Connect
Connect interface
Represents a connection and its capabilities on a remote server Provides methods to send and receive messages, as well as metadata and schema information.
Signature:
export interface Connect
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
string | |||
|
|
boolean |
Indicates whether the connection is currently established. | |
|
|
Observable<boolean> |
(Optional) An Observable that emits a boolean value indicating whether the connection is currently established. | |
|
|
BehaviorSubject<boolean> |
(Optional) A behavior subject holding the current connection status. | |
|
boolean |
Indicates whether Connect is working or is idle. |
Methods
|
Method |
Description |
|---|---|
|
Sends a request to the server to retrieve data or perform an action. | |
|
Connects to a server at the specified host. | |
|
Logs off from the specified data source. | |
|
Disconnects from the server. | |
|
Sends a request to the server to get available resources. | |
|
Retrieves the JSON schema for the specified resource. | |
|
Retrieves the metadata for the specified resource. | |
|
Requests additional columns for the specified source reference. | |
|
Requests additional rows of data for the specified source reference. | |
|
Sends a request to the server to retrieve data or perform an action. | |
|
Retrieves a snapshot of data for the specified resource. | |
|
Starts listening for updates on the specified resource. | |
|
streamState(resourceName, onMessage, onError, params, initialState) |
Starts listening for updates on the specified resource. |
|
streamWithoutAutoTeardown(resourceName, onMessage, onError, params) |
(ALPHA) Starts listening for updates on the specified resource without auto-teardown. |