Skip to content

Commit

Permalink
docs: Update README.md configure pubsub as a service module (#1802)
Browse files Browse the repository at this point in the history
Co-authored-by: Chad Nehemiah <chad.nehemiah94@gmail.com>
  • Loading branch information
2 people authored and achingbrain committed Jun 19, 2023
1 parent 8c6b6d2 commit 25504ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/pubsub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ const createNode = async () => {
transports: [tcp()],
streamMuxers: [yamux(), mplex()],
connectionEncryption: [noise()],
// we add the Pubsub module we want
pubsub: gossipsub({ allowPublishToZeroPeers: true })
services: {
// we add the Pubsub module we want
pubsub: gossipsub({ allowPublishToZeroPeers: true })
}
})

return node
Expand Down

0 comments on commit 25504ae

Please sign in to comment.