Twitter streaming directly to browser with Node.js and HTML5 websockets
JavaScript
Latest commit ed2353f Sep 27, 2011 @andregoncalves Merge pull request #3 from sudodo/fix_json_parse
fix "Unexpected token ILLEGAL" error.
Permalink
Failed to load latest commit information.
vendor Updated to work with new websockets and node API implementations Nov 6, 2010
.gitignore
README.textile Updated to work with new websockets and node API implementations Nov 6, 2010
index.html Initial commit. Dec 29, 2009
server.js fix "Unexpected token ILLEGAL" error. Aug 28, 2011

README.textile

Twitter Node.js WebSockets Example

Quick experiment of direct streaming from twitter to the browser, with no polling, using Node.js.
(Follow up to Ruben Fonseca version with Ruby and AMQP)

More info here.

Requirements:

  • Node.js.
  • HTML5 WebSockets capable browser.

How To:

  • Download and install node.js (instructions here).
  • Download the project from github.
  • Start the server: node server.js <twitter_username> <twitter_password> <optional_keyword>.
  • Open index.html with a WebSocket compatible browser (Chrome or Webkit nightly).

Libraries used:

Andre Goncalves (@andregoncalves)