code: function normalizeConnectArgs (args) {
    var options = {}
  
    if (args[0] !== null && typeof args[0] === 'object') {
      // connect(options, [cb])
      options = args[0]
    } else if (isPipeName(args[0])) {
      // connect(path, [cb])
      throw new Error('Pipes are not supported in Chrome Apps.')
    } else {
      // connect(port, [host], [cb])
      options.port = args[0]
      if (typeof args[1] === 'string') {
        options.host = args[1]
      }
    }
  
    var cb = args[args.length - 1]
    return typeof cb === 'function' ? [options, cb] : [options]
  }
docs: HELPERS  
  Returns an array [options] or [options, cb]
  It is the same as the argument of Socket.prototype.connect().