lib/stomp-utils.js
function parseCommand(data) {
  var command,
      str = data.toString('utf8', 0, data.length);

  command = str.split('\n');
  return command[0];
}
function parseCommand(data) {
  var command,
      str = data.toString('utf8', 0, data.length);

  command = str.split('\n');
  return command[0];
}
function parseCommand ( data ) { var command , str = data . toString ( 'utf8' , 0 , data . length ) ; command = str . split ( '\n' ) ; return command [ 0 ] ; }
Parse single command
Parse single command