Constructor
new FirebaseSubscribingClient(endpointnon-null, firebaseDatabasenon-null, actorRequestFactorynon-null, subscriptionServicenon-null)
Creates an instance of the client.
Parameters:
Name | Type | Description |
---|---|---|
endpoint |
HttpEndpoint | the server endpoint to execute queries and commands |
firebaseDatabase |
FirebaseDatabaseClient | the client to read the query results from |
actorRequestFactory |
ActorRequestFactory | a factory to instantiate the actor requests with |
subscriptionService |
FirebaseSubscriptionService | a service handling the subscriptions |
- Source:
Methods
cancelAllSubscriptions()
- Source:
subscribe()
- Source:
subscribeToEvents()
- Source:
(static) internalSubscription(pathnon-null, topicnon-null) → {SubscriptionObject}
Creates a `SubscriptionObject` instance to communicate with Spine server.
Parameters:
Name | Type | Description |
---|---|---|
path |
String | a path to object which gets updated in Firebase |
topic |
spine.client.Topic | a topic for which the Subscription gets updates |
- Source:
Returns:
a `SubscriptionObject` instance to communicate with Spine server
- Type
- SubscriptionObject