@libp2p/floodsub 9.0.2 → 9.0.3-742915567

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,7 +15,7 @@ It exists for academic purposes only, you should not use it in production.
15
15
 
16
16
  Instead please use [gossipsub](https://www.npmjs.com/package/@chainsafe/libp2p-gossipsub) - a more complete implementation which is also compatible with floodsub.
17
17
 
18
- ## Example - Configuring libp2p to use floodsub
18
+ ## Example
19
19
 
20
20
  ```JavaScript
21
21
  import { createLibp2pNode } from 'libp2p'
@@ -29,7 +29,7 @@ await node.start()
29
29
 
30
30
  node.pubsub.subscribe('fruit')
31
31
  node.pubsub.addEventListener('message', (evt) => {
32
- console.this.log(evt)
32
+ console.log(evt)
33
33
  })
34
34
 
35
35
  node.pubsub.publish('fruit', new TextEncoder().encode('banana'))