You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b6048d0
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: examples/js-libp2p-example-browser-pubsub/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
This example leverages the [vite bundler](https://vitejs.dev/) to compile and serve the libp2p code in the browser. You can use other bundlers such as Webpack, but we will not be covering them here.
11
11
12
12
> [!TIP]
13
-
> This example uses `@libp2p/floodsub` as a pubsub implementation - it is not suitable for production use, instead use `@chainsafe/libp2p-gossipsub`
13
+
> This example uses `@libp2p/floodsub` as a pubsub implementation - it is not suitable for production use, instead use `@libp2p/gossipsub`
Copy file name to clipboardExpand all lines: examples/js-libp2p-example-discovery-mechanisms/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,7 +128,7 @@ Pub/sub based peer discovery is useful for deployments where other mechanisms ma
128
128
You can find the complete solution at [3-pubsub.js](./3-pubsub.js).
129
129
130
130
> [!TIP]
131
-
> The pubsub example uses `@libp2p/floodsub` - it is not suitable for production use, instead use `@chainsafe/libp2p-gossipsub`
131
+
> The pubsub example uses `@libp2p/floodsub` - it is not suitable for production use, instead use `@libp2p/gossipsub`
132
132
133
133
In the example we create three nodes. The first is used to bootstrap the network. The second and third dial the bootstrapper, then discover each other via the pub/sub peer discovery topic.
In this example, node one has an outdated version of the system, or is a malicious node. When it tries to publish fruit, the messages are re-shared and all the nodes share the message. However, when it tries to publish a vehicle the message is not re-shared.
149
143
150
144
```JavaScript
145
+
// Wait for `node` to receive `data` on `topic`. Fruit that fails validation is
146
+
// never re-shared, so give up after `timeout` ms.
0 commit comments