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