We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 850b5c9 commit 4617f23Copy full SHA for 4617f23
src/upgrader.js
@@ -231,7 +231,7 @@ class Upgrader {
231
const { stream, protocol } = await mss.handle(Array.from(this.protocols.keys()))
232
log('%s: incoming stream opened on %s', direction, protocol)
233
if (this.metrics) this.metrics.trackStream({ stream, remotePeer, protocol })
234
- connection.addStream(stream, protocol)
+ connection.addStream(muxedStream, { protocol })
235
this._onStream({ connection, stream, protocol })
236
} catch (err) {
237
log.error(err)
0 commit comments