A simple example to create a websocket server and stream tweets of a specific hashtag to your browser.
$ sudo npm install socket.io
$ sudo npm install twitter
Get your Standard Twitter API credentials from https://apps.twitter.com/ .
Make sure to include any valid URL (eg. https://www.google.com
) as the Callback URL, so that the keys can work as a browser app
.
$ node ./app.js
Then open http://localhost:1337/
in your browser.