We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2cab24 commit 5e4aa22Copy full SHA for 5e4aa22
files/en-us/web/api/webtransport/createunidirectionalstream/index.md
@@ -59,7 +59,7 @@ async function writeData() {
59
const stream = await transport.createUnidirectionalStream({
60
sendOrder: "596996858",
61
});
62
- const writer = stream.writable.getWriter();
+ const writer = stream.getWriter();
63
const data1 = new Uint8Array([65, 66, 67]);
64
const data2 = new Uint8Array([68, 69, 70]);
65
writer.write(data1);
@@ -80,7 +80,7 @@ You can also use {{domxref("WritableStreamDefaultWriter.abort()")}} to abruptly
80
// ...
81
82
const stream = await transport.createUnidirectionalStream();
83
-const writer = ws.getWriter();
+const writer = stream.getWriter();
84
85
86
0 commit comments