registerSnapshotParameters(parameters: SnapshotParameters): Handle
Register parameters to use for snapshots.
parameters: SnapshotParameters
The parameters.Handle
registerSubscriptionParameters(parameters: SubscriptionParameters): Handle
Register parameters to use for subscriptions.
parameters: SubscriptionParameters
The parameters.Handle
snapshot(topic: TopicRequest, handler?: ISnapshotHandler, snapshotParameters?: Handle): SnapshotHandle
Snapshot a topic.
topic: TopicRequest
The topic to snapshot.handler?: ISnapshotHandler
The optional snapshot handler.snapshotParameters?: Handle
The optional handle of the snapshot parameters to use.SnapshotHandle
subscribe(topic: TopicRequest, handler?: ISubscriptionHandler, subscriptionParameters?: Handle): SubscriptionHandle
Subscribe to a topic.
topic: TopicRequest
The topic to subscribe to.handler?: ISubscriptionHandler
The optional subscription handler.subscriptionParameters?: Handle
The optional handle of the subscription parameters to use.SubscriptionHandle
query(query: TagQuery, handler?: IQueryHandler): QueryHandle
Query for topic ids matching a tag expression.
query: TagQuery
The tag expression to query.handler?: IQueryHandler
The optional query handler.QueryHandle
querySnapshot(query: TagQuery, handler?: ISnapshotHandler, snapshotParameters?: Handle): SnapshotHandle
Snapshot topics using a query.
query: TagQuery
The tag expression to snapshot.handler?: ISnapshotHandler
The optional snapshot handler.snapshotParameters?: Handle
The optional handle of the snapshot parameters to use.SnapshotHandle
querySubscribe(query: TagQuery, handler?: ISubscriptionHandler, subscriptionParameters?: Handle): SubscriptionHandle
Subscribe to topics using a query.
query: TagQuery
The tag expression to subscribe to.handler?: ISubscriptionHandler
The optional subscription handler.subscriptionParameters?: Handle
The optional handle of the subscription parameters to use.SubscriptionHandle
disconnect(): void
Disconnect from a gateway.
void
readonly disconnected: Promise<void>
Use this property to monitor the life of a connection. It will be resolved upon a successful user-initiated disconnection or rejected if an unexpected break in the connection occurs.
NB the API will not attempt to automatically reconnect.