Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
socket = io.listen(server);
socket.on('connection', function(client) {
return client.send('Welcome to the Tweet Monitor!!!\n\n\n\n');
});
twit.addListener('tweet', function(tweet) {
db.save(tweet);
socket.broadcast(tweet);
return console.log(twit.trackKeywords);
}).stream();
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment