Functions -
websub
addWebSubLinkHeader | Function to add link headers to a response to allow WebSub discovery. |
extractTopicAndHubUrls | Function to retrieve hub and topic URLs from the |
startHub | Starts up the Ballerina Hub. |
Function to add link headers to a response to allow WebSub discovery.
Function to retrieve hub and topic URLs from the http:response
from a publisher to a discovery request.
Parameters
- response Response
-
The
http:Response
received
startHub
(Listener hubServiceListener, HubConfiguration hubConfiguration)
returns WebSubHub | HubStartedUpErrorStarts up the Ballerina Hub.
Parameters
- hubServiceListener Listener
-
The
http:Listener
to which the hub service is attached
- hubConfiguration HubConfiguration - {}
-
The hub specific configuration
-
Return Type
(WebSubHub | HubStartedUpError) WebSubHub
The WebSubHub object representing the newly started up hub, orHubStartedUpError
indicating that the hub is already started, and including the WebSubHub object representing the already started up hub