Object -
websub
:
HubPersistenceStore
Represents the hub persistence configuration and functions.
Methods
Function to add or update subscription details.
Function to remove subscription details.
Function to add a topic.
Function to remove a topic.
Function to retrieve subscription details of all subscribers.
Function to retrieve all registered topics.
Function to add or update subscription details.
Parameters
- subscriptionDetails SubscriptionDetails
-
The details of the subscription to add or update
-
Return Type
(error?) error
if an error occurred while adding the subscription,()
otherwise
Function to remove subscription details.
Parameters
- subscriptionDetails SubscriptionDetails
-
The details of the subscription to remove
-
Return Type
(error?) error
if an error occurred while removing the subscription,()
otherwise
Function to add a topic.
Parameters
- topic string
-
The topic to add
-
Return Type
(error?) error
if an error occurred while adding the topic,()
otherwise
Function to remove a topic.
Parameters
- topic string
-
The topic to remove
-
Return Type
(error?) error
if an error occurred while removing the topic,()
otherwise
Function to retrieve subscription details of all subscribers.
-
Return Type
(SubscriptionDetails[] | error) error
if an error occurred while retrieving the subscriptions, an array of subscriber details otherwise