AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
MDN Streams - It's Not Finished State
When you have a stream, you can set how big the chunks are that are being sent to readers. There's also something called the high watermark too, which is basically the amount of data The buffer can hold before it starts to override the previous data. But the I think the most important thing is that fact there's a possibility that what you are fetching Is not actually done yet. So by the time that first promise resolves You could be receiving a stream and not just an entire finished request. And if that's the case you can intercept that stream Um, and you can listen for what are called chunks.