Added pubsub to the TOC (#1215)

This commit is contained in:
Steve Loeppky 2022-05-16 11:22:41 -07:00 committed by GitHub
parent 7678156cf3
commit 1f5d5c2de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,7 @@ A migration guide for refactoring your application code from libp2p v0.36.x to v
- [Config](#config)
- [Bundled modules](#bundled-modules)
- [Events](#events)
- [Pubsub](#pubsub)
## ESM
@ -202,7 +203,7 @@ libp2p.addEventListener('peer:discovery', handler)
libp2p.removeEventListener('peer:discovery', handler)
```
## Pubsub
## Pubsub
Similar to the events refactor above, pubsub is now driven by the standard [EventTarget](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget) API.