fix: overwrite stream fields after handshake (#1305)

Instead of creating a new stream objects instead just overwrite the duplex fields with ones from the mss stream.
This commit is contained in:
Alex Potsides
2022-09-08 12:47:03 +01:00
committed by GitHub
parent d63e08115b
commit 43b0418998
5 changed files with 11 additions and 14 deletions

View File

@ -9,7 +9,7 @@
"@libp2p/delegated-content-routing": "^2.0.1",
"@libp2p/delegated-peer-routing": "^2.0.1",
"@libp2p/kad-dht": "^3.0.0",
"@libp2p/mplex": "^5.0.0",
"@libp2p/mplex": "^5.2.1",
"@libp2p/webrtc-star": "^3.0.0",
"@libp2p/websockets": "^3.0.0",
"react": "^17.0.2",

View File

@ -11,7 +11,7 @@
"dependencies": {
"@chainsafe/libp2p-noise": "^8.0.0",
"@libp2p/bootstrap": "^2.0.0",
"@libp2p/mplex": "^5.0.0",
"@libp2p/mplex": "^5.2.1",
"@libp2p/webrtc-star": "^3.0.0",
"@libp2p/websockets": "^3.0.0",
"libp2p": "../../"

View File

@ -12,7 +12,7 @@
"@libp2p/webrtc-direct": "^2.0.0",
"@chainsafe/libp2p-noise": "^8.0.0",
"@libp2p/bootstrap": "^2.0.0",
"@libp2p/mplex": "^5.0.0",
"@libp2p/mplex": "^5.2.1",
"libp2p": "../../",
"wrtc": "^0.4.7"
},