var config = require('../config');
var socketEmitter = require('./createSocketEmitter')();


function sendActivity(data){
  //TODO throttle
  if(config.broadcastActivity && data && data.ipAddress){
    console.log("SENDING ACTIVITY DATA", data);
    socketEmitter({uuid: config.uuid + '_bc'}, 'message', data);
  }
}

module.exports = sendActivity;

@@ -261,15 +261,8 @@
 ter(
-%7Buuid: 
 conf
@@ -276,17 +276,16 @@
  + '_bc'
-%7D
 , 'messa

fix activity broadcast