lib/stomp-utils.js
function sendFrame(socket, _frame) {
  var frame = _frame;

  if (!_frame.hasOwnProperty('toString')) {
    frame = new Frame({
      'command': _frame.command,
      'headers': _frame.headers,
      'body': _frame.body
    });
  }

  socket.send(frame.toStringOrBuffer());
  return true;
}
function sendFrame(socket, _frame) {
  var frame = _frame;

  if (!_frame.hasOwnProperty('toString')) {
    frame = new Frame({
      'command': _frame.command,
      'headers': _frame.headers,
      'body': _frame.body
    });
  }

  socket.send(frame.toStringOrBuffer());
  return true;
}
function sendFrame ( socket , _frame ) { var frame = _frame ; if ( ! _frame . hasOwnProperty ( 'toString' ) ) { frame = new Frame ( { 'command' : _frame . command , 'headers' : _frame . headers , 'body' : _frame . body } ) ; } socket . send ( frame . toStringOrBuffer ( ) ) ; return true ; }
Send frame with socket
Send frame with socket