lib/stats.js
function send(data, cb) {
    if (enabled) {
      var send_data = new Buffer(data);
      try {
        socket.send(send_data, 0, send_data.length, port, host, function(err, bytes) {
          if (cb) {
            return cb(err, bytes);
          }
        });
      } catch (x) {
        // Purposely ignored..
        cb();
      }
    } else {
      cb();
    }
  }
function send(data, cb) {
    if (enabled) {
      var send_data = new Buffer(data);
      try {
        socket.send(send_data, 0, send_data.length, port, host, function(err, bytes) {
          if (cb) {
            return cb(err, bytes);
          }
        });
      } catch (x) {
        // Purposely ignored..
        cb();
      }
    } else {
      cb();
    }
  }
function send ( data , cb ) { if ( enabled ) { var send_data = new Buffer ( data ) ; try { socket . send ( send_data , 0 , send_data . length , port , host , function ( err , bytes ) { if ( cb ) { return cb ( err , bytes ) ; } } ) ; } catch ( x ) { // Purposely ignored.. cb ( ) ; } } else { cb ( ) ; } }
needs to send in batches every second or so
needs to send in batches every second or so