libp2p / js-libp2p

The JavaScript Implementation of libp2p networking stack.
https://libp2p.github.io/js-libp2p/
Other
2.34k stars 447 forks source link

fix: emit 'listening' when relays change #2758

Closed achingbrain closed 1 month ago

achingbrain commented 1 month ago

To signal to the rest of libp2p that our addresses are changing, emit the listening event when relays go away or our reservation expires.

Also remove the old tags on startup to ensure we don't reconnect to old relays as the spec says the reservation is only valid while we are connected.

Change checklist