Skip to content

Commit

Permalink
Use yamux as the muxer
Browse files Browse the repository at this point in the history
  • Loading branch information
p-shahi authored Dec 15, 2024
1 parent e65ea1f commit b3223bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/guides/getting-started/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ import { yamux } from '@chainsafe/libp2p-yamux'
const node = await createLibp2p({
transports: [tcp()],
connectionEncrypters: [noise()],
streamMuxers: [mplex()]
streamMuxers: [yamux()]
})

```
Expand All @@ -147,7 +147,7 @@ const main = async () => {
},
transports: [tcp()],
connectionEncrypters: [noise()],
streamMuxers: [mplex()]
streamMuxers: [yamux()]
})

// start libp2p
Expand Down Expand Up @@ -206,7 +206,7 @@ const node = await createLibp2p({
},
transports: [tcp()],
connectionEncrypters: [noise()],
streamMuxers: [mplex()],
streamMuxers: [yamux()],
services: {
ping: ping({
protocolPrefix: 'ipfs', // default
Expand Down

0 comments on commit b3223bc

Please sign in to comment.