Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

PubSubHubbub Web Socket Subscriber

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 deps
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 LICENSE-MIT
Octocat-spinner-32 README.textile
Octocat-spinner-32 client.html
Octocat-spinner-32 default_config.json
Octocat-spinner-32 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.