Creates a DialTarget. The DialTarget is used to create and track the DialRequest to a given peer. If a multiaddr is received it should be the first address attempted.
Creates a PendingDial that wraps the underlying DialRequest
Connects to a given peer
by dialing all of its known addresses.
The dial to the first address that is successfully able to upgrade a connection
will be used.
The peer to dial
Clears any pending dials
{PeerStore} peerStore
{TransportManager} transportManager
{(addresses: Address[]) => Address[]} [options.addressSorter = publicAddressesFirst] - Sort the known addresses of a peer before trying to dial.
{number} [concurrency = MAX_PARALLEL_DIALS] - Number of max concurrent dials.
{number} [perPeerLimit = MAX_PER_PEER_DIALS] - Number of max concurrent dials per peer.
{number} [timeout = DIAL_TIMEOUT] - How long a dial attempt is allowed to take.
{Record<string, Resolver>} [resolvers = {}] - multiaddr resolvers to use when dialing
{string} id
{Multiaddr[]} addrs
{DialRequest} dialRequest
{TimeoutController} controller
{Promise} promise
{function():void} destroy