From a0776bac76b3ae5a19e93ff0f3495410669e0e11 Mon Sep 17 00:00:00 2001 From: Philippe Sultan Date: Fri, 29 Dec 2023 23:18:26 +0100 Subject: [PATCH] Call pipeThrough on stream.readable Fixes #818 --- webtransport/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webtransport/client.js b/webtransport/client.js index 50c4729698..9460c0fbc2 100644 --- a/webtransport/client.js +++ b/webtransport/client.js @@ -131,7 +131,7 @@ async function acceptUnidirectionalStreams(transport) { async function readFromIncomingStream(stream, number) { let decoder = new TextDecoderStream('utf-8'); - let reader = stream.pipeThrough(decoder).getReader(); + let reader = stream.readable.pipeThrough(decoder).getReader(); try { while (true) { const { value, done } = await reader.read();