diff --git a/classes/_waku_core.ConnectionManager.html b/classes/_waku_core.ConnectionManager.html index 4c5378ac53..674152bab1 100644 --- a/classes/_waku_core.ConnectionManager.html +++ b/classes/_waku_core.ConnectionManager.html @@ -1,4 +1,4 @@ -
Private #privatePrivate currentPrivate dialPrivate dialPrivate isPrivate keepPrivate libp2pPrivate onPrivate optionsPrivate pendingReadonly pubsubOptional options: boolean | AddEventListenerOptionsPrivate attemptPrivate #privatePrivate currentPrivate dialPrivate dialPrivate isPrivate keepPrivate libp2pPrivate onPrivate optionsPrivate pendingReadonly pubsubOptional 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:
@@ -66,20 +66,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 stopPrivate startPrivate startPrivate startPrivate startPrivate startPrivate stopPrivate protoPrivate protoOptional metaSetter: IMetaSetterOptional metaOptional metaSetter: IMetaSetterOptional metaOptional 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 componentsReadonly pubsubReadonly removeOptional listener: EventHandler<Event>Optional options: boolean | EventListenerOptionsProtected streamPrivate Static Optional handleProtected getPrivate onReadonly addProtected componentsReadonly pubsubReadonly removeOptional listener: EventHandler<Event>Optional options: boolean | EventListenerOptionsProtected streamPrivate Static Optional handleProtected getPrivate onImplements the Waku v2 Light Push protocol.
-Readonly addProtected componentsReadonly pubsubReadonly removeOptional listener: EventHandler<Event>Optional options: boolean | EventListenerOptionsProtected streamProtected getPrivate prepareReadonly addProtected componentsReadonly pubsubReadonly removeOptional listener: EventHandler<Event>Optional options: boolean | EventListenerOptionsProtected streamProtected getPrivate prepare
Attempts to establish a connection with a peer and set up specified protocols. +