mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-05-02 14:02:14 +00:00
Added pubsub to the TOC (#1215)
This commit is contained in:
parent
7678156cf3
commit
1f5d5c2de1
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user