+ This is a WebSub Hub service, facilitating content distribution.
+ Authenticated users may view details of any syndications related to their profile.
+
+ `;
+}
+
+/**
+ * @returns {string} element
+ */
function aboutSection() {
return `
What
@@ -17,6 +39,12 @@ function aboutSection() {
`;
}
+/**
+ *
+ * @param {boolean} isPublicHub is public hub
+ * @param {string} hubURL hub url
+ * @returns {string} html
+ */
function usageSection(isPublicHub, hubURL) {
const usageContent = isPublicHub ? `
Public Hub
@@ -46,6 +74,15 @@ function usageSection(isPublicHub, hubURL) {
+
+ Ideally, these should be combined in one header.
+
+
@@ -73,15 +110,21 @@ function usageSection(isPublicHub, hubURL) {
Publishing Updates
- Send a POST request to this hub with Form Data:
+ To notify the Hub either of a new topic to syndicate, or that a topic's content has been updated and should be distributed to subscribers, send a POST request with Form Data (application/x-www-form-urlencoded):
hub.mode set to publish
- hub.url set to the self link relation of the content
+ hub.url set to the self link relation of the content (this value may be set multiple times, to update more than one topic)