mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-21 13:01:33 +00:00
chore: use listening events to create self peer record on updates
This commit is contained in:
@ -73,6 +73,7 @@
|
||||
* [`libp2p`](#libp2p)
|
||||
* [`libp2p.connectionManager`](#libp2pconnectionmanager)
|
||||
* [`libp2p.peerStore`](#libp2ppeerStore)
|
||||
* [`libp2p.transportManager`](#libp2ptransportmanager)
|
||||
* [Types](#types)
|
||||
* [`Stats`](#stats)
|
||||
|
||||
@ -2019,6 +2020,14 @@ This event will be triggered anytime we are disconnected from another peer, rega
|
||||
- `peerId`: instance of [`PeerId`][peer-id]
|
||||
- `protocols`: array of known, supported protocols for the peer (string identifiers)
|
||||
|
||||
### libp2p.transportManager
|
||||
|
||||
#### Listening addresses change
|
||||
|
||||
This event will be triggered anytime the listening addresses change.
|
||||
|
||||
`libp2p.transportManager.on('listening', () => {})`
|
||||
|
||||
## Types
|
||||
|
||||
### Stats
|
||||
|
Reference in New Issue
Block a user