Skip to content

Instantly share code, notes, and snippets.

/app.js Secret

Created May 6, 2017 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9814ae868e50200a5afb3d5231521970 to your computer and use it in GitHub Desktop.
Save anonymous/9814ae868e50200a5afb3d5231521970 to your computer and use it in GitHub Desktop.
var io = require('socket.io')(80);
var cfg = require('./config.json');
var tw = require('node-tweet-stream')(cfg);
tw.track('socket.io');
tw.track('javascript');
tw.on('tweet', function(tweet){
io.emit('tweet', tweet);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment