index.js
// Function to get the next buffer of messages (buffer length = 1s)
Function to get the next buffer of messages (buffer length = 1s)
Function to get the next buffer of messages ( buffer length = 1s )
function bufferMessage() {
  var nextMessage = messages.shift();
  if (!conf.buffer) { return nextMessage; }
  nextMessage.buffer = [nextMessage.description];
  delete nextMessage.buffer;
  return nextMessage;
}
function bufferMessage ( ) { var nextMessage = messages . shift ( ) ; if ( ! conf . buffer ) { return nextMessage ; } nextMessage . buffer = [ nextMessage . description ] ; delete nextMessage . buffer ; return nextMessage ; }
Function to get the next buffer of messages (buffer length = 1s)
Function to get the next buffer of messages ( buffer length = 1s )
// delete the buffer from memory