mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-09 09:13:10 +00:00
feat: use yamux instead of mplex
This commit is contained in:
parent
0a0a92bccb
commit
91eea23624
@ -134,6 +134,7 @@
|
||||
"wifi",
|
||||
"xsalsa20",
|
||||
"zerokit",
|
||||
"yamux",
|
||||
"Привет",
|
||||
"مرحبا"
|
||||
],
|
||||
|
||||
7204
package-lock.json
generated
7204
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -61,6 +61,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@chainsafe/libp2p-noise": "^16.0.0",
|
||||
"@chainsafe/libp2p-yamux": "^7.0.0",
|
||||
"@libp2p/bootstrap": "^11.0.1",
|
||||
"@libp2p/identify": "^3.0.1",
|
||||
"@libp2p/mplex": "^11.0.1",
|
||||
|
||||
@ -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";
|
||||
@ -60,7 +60,7 @@ export async function defaultLibp2p(
|
||||
|
||||
return createLibp2p({
|
||||
transports: [webSockets({ filter: filter })],
|
||||
streamMuxers: [mplex()],
|
||||
streamMuxers: [yamux()],
|
||||
connectionEncrypters: [noise()],
|
||||
...options,
|
||||
services: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user