code: 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;
  }
docs: Send frame with socket