Optional
providers: SubscriptionProvider[]Optional
activeSubscriptions: Subscription[]Optional
errors: Map<string, SubscriptionError>Private
activePrivate
apiPrivate
errorsPrivate
providersOptional
timestampAdded: numberCreates a new FeedSubscriptionManager with the data from this one.
This includes all data (subscriptions, providers, and errors, but doesn't include dynamic state (listeners on the emitter).
This is a shallow clone. The resulting object has new containers but the same underlying objects, which are expected to be immutable. If you need a deep clone, use serialization.
Private
fetchPerforms the network fetch of a subscription, and inspects the results for validity. The error log for the subscription will be reset and repopulated, so callers should check this in order to determine success.
Optional
onFinish: ((actions) => Promise<void>)Optional
timestampAdded: numberFetches a list of all feeds from the given provider URL.
Merges subscriptions from other
into this
, returning an object with
a count of the number of new providers and subscriptions added.
Only subscriptions and providers are included in the merge. Other non-persistent state (listeners, errors) is ignored.
The merge only ever adds new providers and/or subscriptions which do not already exist. Existing entries are never mutated. Subscriptions will be added only if their subscription ID is globally unique, and their feed ID is unique within the scope of their provider URL. Providers are added only if there is a new subscription to add and no existing provider for its URL.
Optional
onFinish: ((actions) => Promise<void>)Poll a single subscription. Intended for use when resolving errors with a feed that failed to load due to network/connection issues.
Optional
onFinish: ((actions) => Promise<void>)This "refreshes" a feed. Existing feed errors are cleared, and new ones may be detected.
Returns the successful responses. Failures will be recorded in
this.errors
for display to the user.
Optional
onFinish: ((actions) => Promise<void>)Optional
idsToPoll: (undefined | string)[]Optional
replace: booleanPrivate
validateValidates that the actions received in a feed are permitted by the user.
Static
deserializeCreate a FeedSubscriptionManager from serialized data. Upgrades from serialized data based on version number.
Generated using TypeDoc
Class responsible for storing the list of feed providers this application is aware of, as well as the list of feeds that each provider can serve, and which of those we are subscribed to.