async function writeData() {
const stream = await transport.createUnidirectionalStream({
sendOrder: "400", // Set initial stream order
});
console.log(`Stream order: ${stream.sendOrder}`); // Stream order: 400
// write data ...
// Change the stream order
stream.sendOrder = 596996858;
console.log(`Stream order: ${stream.sendOrder}`); // Stream order: 596996858
// write more data ...
}WebTransportSendStream: sendOrder property / notebook
WebTransportSendStream: sendOrder property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.