6min chapter

Syntax - Tasty Web Development Treats cover image

Web Streams Explained

Syntax - Tasty Web Development Treats

CHAPTER

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.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode