PubSubHubbub Web Socket Subscriber
Big thanks to dshaw for helping me boostrap this.
There is a temporary demo of this server that is running at
http://node.superfeedr.com/. And a demo client gracefully hosted by Github as a page. Check also this other client (using the exact same server), with some of the Gowalla checkins appear in realtime on a Google Map. (the code for both clients is available in the gh-page branch.)
PubSubHubbub is beautiful!
Install and dependencies
This needs to happen on a server that is NOT behind a firewall. PubSubHubbub is a server-to-server protocol. It won’t work on your local machine. You can certainly try to use the wonderful Localtunnel from @progrium, the wizard.
- Install Node.js
- Install ExpressJS
- Clone repository :
git clone git://github.com/julien51/socket-sub.git
- Add the node-websocket-server submodule :
git submodule initand
git submodule update
cp default_config.json config.json
- Edit the
config.jsonfile (Feel free to setup the
debugflag to true if something is weird)
$ node server.js
- Edit the
- Open in it your favorite browser (even from your local filesystem, the magic happens thru websockets). Ha, yes you need a browser that supports WebSockets.
There is a ton of stuff to be done here… feel free to fork and implement any. I’m happy to merge back. Also, Superfeedr can grant free credits to anyone who make significant contributions :)
- storage of the subscriptions
- storage of notifications
- XML → Json for the client
- Superfeedr track API