mirror of https://github.com/waku-org/js-waku.git
feat: use `yamux` instead of `mplex`
This commit is contained in:
parent
3e821591c9
commit
4c510f589e
|
@ -124,6 +124,7 @@
|
|||
"websockets",
|
||||
"wifi",
|
||||
"xsalsa20",
|
||||
"yamux",
|
||||
"Привет",
|
||||
"مرحبا"
|
||||
],
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -58,7 +58,8 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@chainsafe/libp2p-noise": "^15.1.0",
|
||||
"@libp2p/bootstrap": "^10.1.2",
|
||||
"@chainsafe/libp2p-yamux": "^7.0.0",
|
||||
"@libp2p/bootstrap": "^10",
|
||||
"@libp2p/identify": "^2.1.2",
|
||||
"@libp2p/mplex": "^10.1.2",
|
||||
"@libp2p/ping": "^1.1.2",
|
||||
|
@ -67,9 +68,9 @@
|
|||
"@waku/core": "0.0.32",
|
||||
"@waku/discovery": "0.0.5",
|
||||
"@waku/interfaces": "0.0.27",
|
||||
"@waku/message-hash": "0.1.16",
|
||||
"@waku/proto": "^0.0.8",
|
||||
"@waku/utils": "0.0.20",
|
||||
"@waku/message-hash": "0.1.16",
|
||||
"libp2p": "^1.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { noise } from "@chainsafe/libp2p-noise";
|
||||
import { yamux } from "@chainsafe/libp2p-yamux";
|
||||
import { bootstrap } from "@libp2p/bootstrap";
|
||||
import { identify } from "@libp2p/identify";
|
||||
import { mplex } from "@libp2p/mplex";
|
||||
import { ping } from "@libp2p/ping";
|
||||
import { webSockets } from "@libp2p/websockets";
|
||||
import { all as filterAll, wss } from "@libp2p/websockets/filters";
|
||||
|
@ -63,7 +63,7 @@ export async function defaultLibp2p(
|
|||
minConnections: 1
|
||||
},
|
||||
transports: [webSockets({ filter: filter })],
|
||||
streamMuxers: [mplex()],
|
||||
streamMuxers: [yamux()],
|
||||
connectionEncryption: [noise()],
|
||||
...options,
|
||||
services: {
|
||||
|
|
Loading…
Reference in New Issue