mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-14 01:31:22 +00:00
Added pubsub to the TOC (#1215)
This commit is contained in:
@ -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.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user