×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Daniel Sont
Added: Aug 10, 2014 3:23 AM
Views: 22
Tags: socket.io
  1. var io = require('socket.io')(80);
  2. var cfg = require('./config.json');
  3. var tw = require('node-tweet-stream')(cfg);
  4. tw.track('socket.io');
  5. tw.track('javascript');
  6. tw.on('tweet', function(tweet){
  7.   io.emit('tweet', tweet);
  8. });