-
-
Save anonymous/9814ae868e50200a5afb3d5231521970 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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