Dials to the provided peer and handshakes with the given protocol.
+
Dials to the provided peer and tries to handshake with the given protocols in order.
If successful, the known metadata of the peer will be added to the nodes peerStore,
- and the Connection will be returned
+ and the MuxedStream will be returned together with the successful negotiated protocol.
Returns Promise<void>
@@ -808,7 +808,7 @@dialProtocol
-- dial
Protocol(peer: string | Multiaddr | PeerId, protocols: string | string[], options: undefined | { signal: undefined | AbortSignal }): Promise<Connection | { protocol: string; stream: MuxedStream }>
+ - dial
Protocol(peer: string | Multiaddr | PeerId, protocols: string | string[], options: undefined | { signal: undefined | AbortSignal }): Promise<{ protocol: string; stream: MuxedStream }>
Dials to the provided peer and handshakes with the given protocol. +
Dials to the provided peer and tries to handshake with the given protocols in order. If successful, the known metadata of the peer will be added to the nodes
+ and thepeerStore
, - and theConnection
will be returnedMuxedStream
will be returned together with the successful negotiated protocol.options: undefined | { signal: undefined | AbortSignal }
-Returns Promise<Connection | { protocol: string; stream: MuxedStream }>
- +Returns Promise<{ protocol: string; stream: MuxedStream }>
@@ -1029,7 +1026,7 @@libp2p - v0.31.0-rc.0
+libp2p - v0.31.0-rc.1
libp2p - v0.31.0-rc.0
+libp2p - v0.31.0-rc.1