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 | AddEventListenerOptionsReturn 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
streamPrivate
handlePrivate
newPrivate
prepareGenerated using TypeDoc
Return a list of all connections this node has open, optionally filtering by a PeerId