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
}
Optional
options: boolean | AddEventListenerOptionsOptional
options: boolean | AddEventListenerOptionsPrivate
createReturn 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
handlePrivate
isPrivate
Readonly
logPrivate
preparePrivate
Readonly
streamGenerated using TypeDoc
Return a list of all connections this node has open, optionally filtering by a PeerId