Optional
subscriptionKeyFn: SubscriptionKeyFnPrivate
Readonly
_datastorePrivate
Optional
Readonly
_handlePrivate
Readonly
_peerPrivate
Readonly
_pubsubPrivate
Readonly
_selectorPrivate
Readonly
_validatorGet record from local datastore
Optional
options: AbortOptionsVerify if the record received through pubsub is valid and better than the one currently stored
handles pubsub subscription messages
Select the best record according to the received select function
Store the received record if it is better than the current stored
Optional
options: AbortOptionsadd record to datastore
Optional
options: AbortOptionsValidate record according to the received validation function
Try to subscribe a topic with Pubsub and returns the local value if available
Optional
options: AbortOptionsPublishes a value through pubsub.
identifier of the value to be published.
value to be propagated.
Optional
options: AbortOptionsUnsubscribe topic
DatastorePubsub is responsible for providing an api for pubsub to be used as a datastore with [TieredDatastore]https://github.com/ipfs/js-datastore-core/blob/master/src/tiered.js