Private
constructorOptional
relay: IRelayOptional
options: Partial<ConnectionManagerOptions>Private
#privateReadonly
configuredPrivate
currentPrivate
dialPrivate
dialPrivate
isPrivate
keepPrivate
libp2pPrivate
onPrivate
optionsPrivate
pendingPrivate
Static
instancesOptional
options: boolean | AddEventListenerOptionsPrivate
attemptThe peer to connect to, either as a PeerId or multiaddr
If the multiaddr is missing a peer ID
If the maximum dial attempts are reached and the peer cannot be dialed
If there's an error deleting an undialable peer from the peer store
// Dial using PeerId
await connectionManager.dialPeer(peerId);
// Dial using multiaddr with specific protocols
await connectionManager.dialPeer(multiaddr, [
"/vac/waku/relay/2.0.0",
"/vac/waku/lightpush/2.0.0-beta1"
]);
Private
dialPrivate
dispatchPrivate
dispatchPrivate
getPrivate
getPrivate
getPrivate
isChecks if the peer is dialable based on the following conditions:
Private
isPrivate
processDial a peer with specific protocols. This method is a raw proxy to the libp2p dialProtocol method.
The peer to connect to, either as a PeerId or multiaddr
Optional array of protocol-specific codec strings to establish
A stream to the peer
Optional
listener: null | EventHandler<(IPeersByDiscoveryEvents & IConnectionStateEvents)[K]>Optional
options: boolean | EventListenerOptionsOptional
detail: CustomEventInit<Detail>Private
setPrivate
setPrivate
shouldChecks if the peer should be dialed based on the following conditions:
true if the peer should be dialed, false otherwise
Private
startPrivate
startPrivate
startPrivate
startPrivate
startPrivate
stopStatic
createOptional
relay: IRelayOptional
options: ConnectionManagerOptions
Attempts to establish a connection with a peer and set up specified protocols. The method handles both PeerId and Multiaddr inputs, manages connection attempts, and maintains the connection state.
The dialing process includes: