mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-05-03 06:22: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)
|
- [Config](#config)
|
||||||
- [Bundled modules](#bundled-modules)
|
- [Bundled modules](#bundled-modules)
|
||||||
- [Events](#events)
|
- [Events](#events)
|
||||||
|
- [Pubsub](#pubsub)
|
||||||
|
|
||||||
## ESM
|
## ESM
|
||||||
|
|
||||||
@ -202,7 +203,7 @@ libp2p.addEventListener('peer:discovery', handler)
|
|||||||
libp2p.removeEventListener('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.
|
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