What is WebSub?
WebSub is a W3C standard for real-time content delivery, formerly known as PubSubHubbub. Instead of Lion Reader repeatedly checking feeds for new content (polling), WebSub allows publishers to push updates directly to subscribers the moment new content is published. This is the same technology that powers real-time updates across much of the modern web.
How It Works
When you subscribe to a feed, Lion Reader automatically checks if the feed advertises a WebSub hub URL in its <link> headers. If it does, Lion Reader subscribes to that hub with a callback URL. The hub then verifies the subscription via a challenge-response handshake to ensure the request is legitimate.
Once subscribed, the publisher’s hub pushes new content directly to Lion Reader the moment it’s published. Lion Reader processes this pushed content just like a regular fetch — parsing entries, deduplicating, and notifying you via real-time updates. The entire process happens automatically in the background with no manual configuration required.
Benefits Over Polling
- Near-instant delivery — New content arrives in seconds instead of minutes
- Reduced server load — Both Lion Reader and the feed publisher benefit from fewer requests
- Lower bandwidth usage — No need to repeatedly fetch unchanged feeds
- Better user experience — Breaking news and time-sensitive content appears immediately
Automatic Detection
Lion Reader discovers and subscribes to WebSub hubs automatically for any feed that supports them. For feeds without WebSub support, Lion Reader seamlessly falls back to regular polling. Subscription renewal and error handling are built in, so the system is resilient to hub outages and network issues.