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.
In this Hasty Treat, Scott and Wes explain the what, why, and how of web streaming, and some of the jargon you might encounter with web streams.
Sentry - Sponsor
If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.
Show Notes
Tweet us your tasty treats