Class: FirebaseSubscriptionService

FirebaseSubscriptionService(endpoint, keepUpIntervalnullable)

A service that manages the active subscriptions periodically sending requests to keep them running.

Constructor

new FirebaseSubscriptionService(endpoint, keepUpIntervalnullable)

Parameters:
Name Type Attributes Description
endpoint Endpoint an endpoint to communicate with
keepUpInterval Duration <nullable>
a custom interval for sending subscription keep up requests
Source:

Classes

FirebaseSubscriptionService

Methods

add(subscription)

Add a subscription to the service to handle the keep-up requests and cancel in case of unsubscribe.
Parameters:
Name Type Description
subscription SpineSubscription an active subscription to keep running
Source:

cancelAllSubscriptions()

Immediately cancels all active subscriptions previously created through this service.
Source:

cancelSubscription(subscription)

Immediately cancels the given subscription, including cancelling it on the server-side.
Parameters:
Name Type Description
subscription SubscriptionObject the subscription to cancel
Source: