Skip to content

Commit 4617f23

Browse files
committed
fix: call connection.addStream properly
1 parent 850b5c9 commit 4617f23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/upgrader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ class Upgrader {
231231
const { stream, protocol } = await mss.handle(Array.from(this.protocols.keys()))
232232
log('%s: incoming stream opened on %s', direction, protocol)
233233
if (this.metrics) this.metrics.trackStream({ stream, remotePeer, protocol })
234-
connection.addStream(stream, protocol)
234+
connection.addStream(muxedStream, { protocol })
235235
this._onStream({ connection, stream, protocol })
236236
} catch (err) {
237237
log.error(err)

0 commit comments

Comments
 (0)