Skip to content

Commit

Permalink
Update WebRTC handshake channel number (#2792)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka authored Sep 28, 2022
1 parent b8b194a commit 62ff6b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/wasm-node/javascript/src/index-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export function start(options?: ClientOptions): Client {
// `pc` is guaranteed to be non-null.
if (isFirstSubstream) {
isFirstSubstream = false;
addChannel(pc!.createDataChannel("data", { id: 1, negotiated: true }), 'outbound')
addChannel(pc!.createDataChannel("data", { id: 0, negotiated: true }), 'outbound')
} else {
addChannel(pc!.createDataChannel("data"), 'outbound')
}
Expand Down

0 comments on commit 62ff6b7

Please sign in to comment.