File tree 1 file changed +1
-5
lines changed
packages/transport-webrtc/src
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,6 @@ interface BufferedStream {
38
38
onEnd ( err ?: Error ) : void
39
39
}
40
40
41
- let streamIndex = 0
42
-
43
41
export class DataChannelMuxerFactory implements StreamMuxerFactory {
44
42
public readonly protocol : string
45
43
@@ -190,10 +188,8 @@ export class DataChannelMuxer implements StreamMuxer {
190
188
sink : Sink < Source < Uint8Array | Uint8ArrayList > , Promise < void > > = nopSink
191
189
192
190
newStream ( ) : Stream {
193
- streamIndex ++
194
-
195
191
// The spec says the label SHOULD be an empty string: https://github.com/libp2p/specs/blob/master/webrtc/README.md#rtcdatachannel-label
196
- const channel = this . peerConnection . createDataChannel ( `stream- ${ streamIndex } ` )
192
+ const channel = this . peerConnection . createDataChannel ( '' )
197
193
const stream = createStream ( {
198
194
channel,
199
195
direction : 'outbound' ,
You can’t perform that action at this time.
0 commit comments