Questions tagged [whatwg-streams-api]

This tag is for questions about the Streams API of the web platform.

Specification: https://streams.spec.whatwg.org/

Implementation status:

23 questions
1
vote
0 answers

How to stream an HTTP POST request's body in the browser

The big picture is that I want to live upload recorded audio from the browser directly to google drive. This is a pet project so I am happy to play with experimental web technologies. I currently have the browser fetching a feed from the microphone…
1
vote
1 answer

If a reader.read() Promise rejects/errors, is it safe to reader.read() again?

My question concerns error handling of a reader from a ReadableStreamDefaultReader. I'm guessing that a Promise rejection from reader.read() would usually indicate a network failure for a fetch request (in which case i'm guessing that it is NOT safe…
thurt
  • 882
  • 1
  • 10
  • 25
0
votes
0 answers

Split a ReadableStream into lines

Say I have a ReadableStream object (from the Streams API web standard): let readableStream = (await fetch('http://example.com')).body; I know I can read it chunk by chunk, where the chunk size usually depends on the network: for await (let chunk of…
Jo Liss
  • 30,333
  • 19
  • 121
  • 170
0
votes
1 answer

JS - StreamSaver not writing to file

I am trying to stream the response of fetch(very large tar file) to a file using streamsaver library. But the file is not created/written, even though "done writing" is printed in the console. Here is my code. const fileStream =…
codingenious
  • 8,385
  • 12
  • 60
  • 90
0
votes
0 answers

Can I receive messages on my native app from Whatsapp Business API?

So I am working on creating a native app for Whatsapp business users so that they can use this app to effectively chat with their contacts on Whatsapp. This mean that if another user messages a business user on Whatsapp then the business user is…
0
votes
1 answer

javascript streamreader only displaying second chunk in #log-box.append

I am struggling through learning JQuery/Javascript and have a web application using the chrome "experimental" web serial API. When I enter a command and get a response back, this string is broken into 2 pieces in a random place, usually in the first…
FDecker
  • 41
  • 1
  • 10
0
votes
0 answers

ReadableStream halts halfway while downloading a large file on Firefox 78.2

I am using the ReadableStream API to stream blocks of a large CSV file of 128 MB with more than 300,000 rows of data. I have followed the MDN ReadableStream documentation to create a ReadableStream and enqueue chunks, but somehow the ReadableStream…
-2
votes
1 answer

How to use streams in Deno?

I am very confused on Deno documentation. It has ReadableStream and WritableStream API, but it doesn’t have a documentation to use it. I want to read from ReadableStream and write to WritableStream, how can I do that in Deno?
thebluetropics
  • 82
  • 2
  • 10
1
2