diff --git a/classes/_waku_core.ConnectionManager.html b/classes/_waku_core.ConnectionManager.html index 713575d923..f84c70c71b 100644 --- a/classes/_waku_core.ConnectionManager.html +++ b/classes/_waku_core.ConnectionManager.html @@ -1,4 +1,4 @@ -
Private constructorOptional relay: IRelayOptional options: Partial<ConnectionManagerOptions>Private #privateReadonly configuredPrivate currentPrivate dialPrivate dialPrivate isPrivate keepPrivate libp2pPrivate onPrivate optionsPrivate pendingPrivate Static instancesOptional options: boolean | AddEventListenerOptionsPrivate attemptPrivate constructorOptional relay: IRelayOptional options: Partial<ConnectionManagerOptions>Private #privateReadonly configuredPrivate currentPrivate dialPrivate dialPrivate isPrivate keepPrivate libp2pPrivate onPrivate optionsPrivate pendingPrivate Static instancesOptional options: boolean | AddEventListenerOptionsPrivate attemptAttempts 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:
@@ -67,20 +67,20 @@ and maintains the connection state.Private dialPrivate dispatchPrivate dispatchPrivate getPrivate dialPrivate dispatchPrivate dispatchPrivate getPrivate getPrivate getPrivate isPrivate getPrivate getPrivate isChecks if the peer is dialable based on the following conditions:
Private isPrivate processPrivate 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:
+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: ConnectionManagerOptionsPrivate startPrivate startPrivate startPrivate startPrivate startPrivate stopStatic createOptional relay: IRelayOptional options: ConnectionManagerOptionsProtected protoProtected protoOptional metaSetter: IMetaSetterOptional metaOptional metaSetter: IMetaSetterOptional metaPrivate Readonly libp2pPrivate Readonly optionsPrivate pingPrivate Optional Readonly relayPrivate relayPrivate schedulePrivate Readonly libp2pPrivate Readonly optionsPrivate pingPrivate Optional Readonly relayPrivate relayPrivate scheduleOptional peerId: PeerIdfor (const connection of libp2p.getConnections()) {
console.log(peerId, connection.remoteAddr.toString())
// Logs the PeerId string and the observed remote multiaddr of each Connection
}
-Optional options: boolean | AddEventListenerOptionsPrivate addOptional options: boolean | AddEventListenerOptionsPrivate getReturn a list of all connections this node has open, optionally filtering +
Optional options: boolean | AddEventListenerOptionsPrivate addOptional options: boolean | AddEventListenerOptionsPrivate getReturn a list of all connections this node has open, optionally filtering by a PeerId
Optional peerId: PeerIdfor (const connection of libp2p.getConnections()) {
console.log(peerId, connection.remoteAddr.toString())
// Logs the PeerId string and the observed remote multiaddr of each Connection
}
-Private Readonly logPrivate multicodecPrivate ongoingPrivate streamPrivate createPrivate createPrivate getPrivate handlePrivate isPrivate lockPrivate schedulePrivate Readonly logPrivate multicodecPrivate ongoingPrivate streamPrivate createPrivate createPrivate getPrivate handlePrivate isPrivate lockPrivate scheduleReadonly addProtected componentsPrivate handleReadonly pubsubReadonly removeOptional listener: EventHandler<Event>Optional options: boolean | EventListenerOptionsProtected streamReadonly addProtected componentsPrivate handleReadonly pubsubReadonly removeOptional listener: EventHandler<Event>Optional options: boolean | EventListenerOptionsProtected streamRetrieves a list of connected peers that support the protocol. The list is sorted by latency.
A list of peers that support the protocol sorted by latency. By default, returns all peers available, including bootstrap.
-Protected getPrivate onProtected getPrivate onImplements the Waku v2 Light Push protocol.
-Readonly addProtected componentsReadonly pubsubReadonly removeOptional listener: EventHandler<Event>Optional options: boolean | EventListenerOptionsProtected streamReadonly addProtected componentsReadonly pubsubReadonly removeOptional listener: EventHandler<Event>Optional options: boolean | EventListenerOptionsProtected streamRetrieves a list of connected peers that support the protocol. The list is sorted by latency.
A list of peers that support the protocol sorted by latency. By default, returns all peers available, including bootstrap.
-Protected getPrivate prepareProtected getPrivate prepare
Attempts to establish a connection with a peer and set up specified protocols. +