diff --git a/README.md b/README.md index b6c20f1..242b809 100644 --- a/README.md +++ b/README.md @@ -92,8 +92,18 @@ const IPFS = require('ipfs') const OrbitDB = require('orbit-db') // Create IPFS instance + +// For js-ipfs >= 0.38 const ipfs = new IPFS() +// For js-ipfs < 0.38 +const ipfsOptions = { + EXPERIMENTAL: { + pubsub: true + } +} +const ipfs = new IPFS(ipfsOptions) + ipfs.on('error', (e) => console.error(e)) ipfs.on('ready', async () => { const orbitdb = await OrbitDB.createInstance(ipfs)