src/dialer/index.js
function connect (peerInfo, options, callback) {
    if (typeof options === 'function') {
      callback = options
      options = null
    }
    options = { useFSM: false, priority: PRIORITY_LOW, ...options }
    _dial({ peerInfo, protocol: null, options, callback })
  }
function connect (peerInfo, options, callback) {
    if (typeof options === 'function') {
      callback = options
      options = null
    }
    options = { useFSM: false, priority: PRIORITY_LOW, ...options }
    _dial({ peerInfo, protocol: null, options, callback })
  }
function connect ( peerInfo , options , callback ) { if ( typeof options === 'function' ) { callback = options options = null } options = { useFSM : false , priority : PRIORITY_LOW , ... options } _dial ( { peerInfo , protocol : null , options , callback } ) }
Attempts to establish a connection to the given `peerInfo` at
a lower priority than a standard dial.
@param {PeerInfo} peerInfo
@param {object} options
@param {boolean} options.useFSM Whether or not to return a `ConnectionFSM`. Defaults to false.
@param {number} options.priority Lowest priority goes first. Defaults to 20.
@param {function(Error, Connection)} callback
Attempts to establish a connection to the given peerInfo at a lower priority than a standard dial .