Class: SpineSubscription

(abstract, protected) SpineSubscription(unsubscribe, subscription)

An abstract base for subscription objects.

Constructor

(abstract, protected) new SpineSubscription(unsubscribe, subscription)

Parameters:
Name Type Description
unsubscribe function the callbacks that allows to cancel the subscription
subscription SubscriptionObject the wrapped subscription object
Source:

Methods

id() → {String}

Source:
Returns:
a string value of the `internal` subscription ID.
Type
String

internal() → {SubscriptionObject}

An internal Spine subscription which includes the topic the updates are received for.
Source:
Returns:
a `spine.client.Subscription` instance
Type
SubscriptionObject