Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
PubSubHubbub Web Socket Subscriber
JavaScript
Branch: master
Pull request Compare This branch is 15 commits ahead, 11 commits behind dshaw:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
deps
.gitignore
.gitmodules
LICENSE-MIT
README.textile
client.html
default_config.json
server.js

README.textile

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.

  1. Install Node.js
  1. Install ExpressJS
  1. Clone repository : git clone git://github.com/julien51/socket-sub.git
  1. Add the node-websocket-server submodule : git submodule init and git submodule update

Configure

  1. cp default_config.json config.json
  1. Edit the config.json file (Feel free to setup the debug flag to true if something is weird)

Run it

  1. $ node server.js
  1. Edit the client.html file
  1. 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.

To do

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

Have fun!

Something went wrong with that request. Please try again.