packages/core/lib/segment_emitter.js
function batchSendData (ops, callback) {
  var client = dgram.createSocket('udp4');

  executeSendData(client, ops, 0, function () {
    try {
      client.close();
    } finally {
      callback();
    }
  });
}
function batchSendData (ops, callback) {
  var client = dgram.createSocket('udp4');

  executeSendData(client, ops, 0, function () {
    try {
      client.close();
    } finally {
      callback();
    }
  });
}
function batchSendData ( ops , callback ) { var client = dgram . createSocket ( 'udp4' ) ; executeSendData ( client , ops , 0 , function ( ) { try { client . close ( ) ; } finally { callback ( ) ; } } ) ; }
Sends a collection of data over a UDP socket. This method
is designed to be used by `atomic-batcher` as a way to share
a single UDP socket for sending multiple data blocks.

@param {object} ops - Details of the data to send
@param {Function} callback - The function to call when done
Sends a collection of data over a UDP socket . This method is designed to be used by atomic - batcher as a way to share a single UDP socket for sending multiple data blocks .