PubSubHubbub(Redirected from PuSH)
This article is a stub. You can help the IndieWebCamp wiki by expanding it.
WhyYou should implement PuSH for your home page updates so that IndieWeb readers (like shrewdness) can:
HowSee: How to publish and consume PubSubHubbub IndieWeb ExamplesThere are several indieweb sites producing PuSH notifications, and a few indieweb-centric applications that consume them (see in particular indie readers, Shrewdness and Woodwind). Tantek
Aaron Parecki
Bret Comnes
Kyle Mahan
Barnaby Walters
David Shanske
Matthias Pfefferle
Christian Weiske
Ben Werdmuller
Pelle Wessman
Andy LeapAndy Leap sends PuSH 0.4 notifications for Vendaria.net since 2015-05-16 1000s of Known Sites1000s of *.withknown.com sites send PuSH 0.4 notifications for each new post on their homepages's HTML feed since at least 2015-05-04 when Known 0.7.8 shipped with reliable PuSH 0.4 support. There are also numerous (hundreds?) of Known installs that are also all likely running Known 0.7.8 or later and thus send PuSH 0.4 notifications. Silo ImplementationsInstagram supports PuSH so that apps can subscribe to notifications whenever a user has posted a new photo. https://instagram.com/developer/subscriptions/ subscriptions API FlickrFlickr supports PuSH to subscribe to photos posted within specific locations or with given tags. https://www.flickr.com/services/api/flickr.push.subscribe.html Consuming ImplementationsThe following implementations consume and subscribe to PuSH feeds: PuSH 0.4: PuSH 0.3: How ToPublish and Consume a PuSH-enabled feedMain article: How to publish and consume PubSubHubbub
PuSH 0.4 goes beyond previous versions to allow publishers to send push notifications for any HTTP resource (e.g. h-feeds). You should use the newer spec, 0.4. PuSH 0.3 supported push notifications only for legacy XML feed files. See the main article: How to publish and consume PubSubHubbub. WordPress Plugins for PuSHThere is a plugin called "PushPress" which you can install on your self-hosted WordPress install. An alternative, that also supports PubSubHubbub v0.4, is the PubSubHubbub Plugin. If you're using WordPress.com, they already support PuSH by default (likely using that plugin). Subscribing to FragmentsSuperfeedr also offers the unique ability to subscribe to fragments on a page, using the # symbol. For example, if you subscribe to http://tantek.com/#.hentry, you will receive POST to your webhook/callback endpoint with the content of the first element of class "hentry" on http://tantek.com/ This should be seen as an optimization. A minimal consumer can simply re-fetch the resource itself when it receives a ping. Testing your PuSH-enabled feedThere are several ways you can test whether or not your PuSH feed and pings are working properly: Testing PuSH 0.4
Testing PuSH 0.3RSS Reader Most popular RSS Readers do implement PubSubHubbub, you can just subscribe to your feed on one of them, and see if the update as been propagated after you added content. Status.net
Bots There are several XMPP/IRC bots which allow you to subscribe to feeds and be notified of updates via any XMPP or IRC client. You’ll need an XMPP account, or an IRC client.
Notifix Notifix is a bot (see above for source code). It's constantly connected to irc.freenode.net. Send him a private message like +help to see available commands. Subscribe with +subscribe <feed>, publish your content and see if you get the ping straight via IRC.
Testing your PuSH Subscriber
Hubs
See https://github.com/pubsubhubbub/PubSubHubbub/wiki/Hubs for more of them. Testing your hubpush-tester is a tool that mimicks a blog with h-feed and h-entry and allows posting new articles with a single click. A configurable PuSH hub is notified about the new post. Public instance: http://push-tester.cweiske.de/ DiscussionDiscussion about PubSubHubbub primarily occurs on the GitHub repo, but there's also a W3C community group:
BrainstormingHow can we support PuSH consumers that do not have a publicly routable URL, such as devices behind a firewall or NAT? Maybe a hub or an external service could provide an alternative subscription mechanism such as websockets or eventsource, which could then make the PuSH subscription on behalf of the consumer. Aaron Parecki 12:32, 26 May 2015 (PDT) IssuesToo ComplexIn the past (2013 era) there was controversy about PubSubHubbub being too complex for the indieweb. Since then numerous indieweb sites support PuSH notifications of their published content, and we have a few new PuSH hubs built and maintained by indieweb folks, as well as readers subscribing to PuSH updates. The below is left as historical record of a past issue.
FAQQ: How do I update the hub I am using and ensure subscribers update accordingly? A: Subscribers should poll occasionally to see if the hub has been updated. You can list and ping both hubs for a while to speed up the process. [1]. Also, hubs should actually notify the hub URL (as part of the discovery links) which means that subscribers will know about the designated hubs with every notification, making it completely optional to have a "routine" polling. It's considered good practice when a feed/publisher changes its hub to have a period during which it *also* pings the old hub (even after the discovery link was removed). See Also |



















