diff --git a/docs/CONNECTING_PEERS.md b/docs/CONNECTING_PEERS.md index 5c2f1d5..dfded0b 100644 --- a/docs/CONNECTING_PEERS.md +++ b/docs/CONNECTING_PEERS.md @@ -72,7 +72,7 @@ const options = { filter: filters.all }) ], - connectionEncryption: [noise()], + connectionEncrypters: [noise()], streamMuxers: [yamux()], services: { identify: identify(), @@ -114,7 +114,7 @@ const options = { discoverRelays: 1 }) ], - connectionEncryption: [noise()], + connectionEncrypters: [noise()], streamMuxers: [yamux()], connectionGater: { denyDialMultiaddr: () => { @@ -180,7 +180,7 @@ const options = { discoverRelays: 1 }) ], - connectionEncryption: [noise()], + connectionEncrypters: [noise()], streamMuxers: [yamux()], connectionGater: { denyDialMultiaddr: () => { @@ -247,7 +247,7 @@ const options = { discoverRelays: 1 }) ], - connectionEncryption: [noise()], + connectionEncrypters: [noise()], streamMuxers: [yamux()], connectionGater: { denyDialMultiaddr: () => { diff --git a/docs/GETTING_STARTED.md b/docs/GETTING_STARTED.md index ed7bcd4..5b8e5e0 100644 --- a/docs/GETTING_STARTED.md +++ b/docs/GETTING_STARTED.md @@ -50,7 +50,7 @@ A simple Node.js example might look something like: transports: [ tcp() ], - connectionEncryption: [noise()], + connectionEncrypters: [noise()], streamMuxers: [yamux()], services: { identify: identify(), @@ -79,7 +79,7 @@ export const Libp2pOptions = { transports: [ tcp() ], - connectionEncryption: [noise()], + connectionEncrypters: [noise()], streamMuxers: [yamux()], services: { identify: identify(),