Skip to content

Commit

Permalink
Call pipeThrough on stream.readable
Browse files Browse the repository at this point in the history
  • Loading branch information
phsultan committed Dec 29, 2023
1 parent c4f3954 commit a0776ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webtransport/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a0776ba

Please sign in to comment.