From 25504aec3a57f21fd40c55d7a1f6d8ef3b0454e6 Mon Sep 17 00:00:00 2001 From: brad winter Date: Fri, 16 Jun 2023 10:00:31 -0700 Subject: [PATCH] docs: Update README.md configure pubsub as a service module (#1802) Co-authored-by: Chad Nehemiah --- examples/pubsub/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/pubsub/README.md b/examples/pubsub/README.md index 723e0dc67b..fd2b861b97 100644 --- a/examples/pubsub/README.md +++ b/examples/pubsub/README.md @@ -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