code: function Socket(options) {
    if (!(this instanceof Socket)) {
      return new Socket(options);
    }
    var tty = process.binding('tty_wrap');
    var guessHandleType = tty.guessHandleType;
    tty.guessHandleType = function() {
      return 'PIPE';
    };
    net.Socket.call(this, options);
    tty.guessHandleType = guessHandleType;
  }
docs: Wrap net.Socket for a workaround