Quick experiment of direct streaming from twitter to the browser, with no polling, using Node.js.
Follow up to http://github.com/andregoncalves/twitter-nodejs-websocket, using Socket.io and twitter-node
Blog post by andre – here. ) ( This explains the basics of what I have tried to do.)
- Node.js.
- HTML5 WebSocket capable browser.
- Download and install node.js (instructions here).
- Download the project from github.
- Download and install npm and install “twitter-node” and “socket.io”
- Start the server:
node server.js <twitter_username> <twitter_password> <optional_keyword>
. - Open
index.html
with a WebSocket compatible browser (Chrome or Webkit nightly).