Interface: Subscription

ServerlessDb.Subscription

Interface for objects representing subscriptions to a data event on a data node of the Webcom ServerlessDb and ServerlessDbLite services.

Instances of this interface are returned by the ServerlessDb.ServerlessDbNode#subscribe method and ServerlessDbLite.ServerlessDbLiteNode#subscribe methods.

Since:
  • 2.10

Methods

cancel() → {Promise}

Cancels the subscription represented by this instance. This operation is asynchronous, it needs a request to the Webcom back end.

Returns:

The returned promise is resolved as soon as the cancelation of the subscription has been acknowledged by the Webcom back end.

Type
Promise
show
deprecated