Ever wish you could send your data as a stream so that the client can start manipulating it and rendering it as it arrives? Tired of waiting for your entire JSON object to resolve before your users see anything interesting? As you may have seen in my previous article on David Walsh Blog, this is now possible with the Fetch API! Stream responses are supported in Chrome 52 and in development in Firefox and Edge. This quick tutorial will show you how to set up a simple Express API to emit a ReadableStream of NDJSON.
Loading
Subscribe
Get our best content on how to build better apps.
Subscribe
Get our best content on how to build better apps.
Loading
Got product development questions?
Join us on
Discord
Can’d Goodies: JavaScript Query String Encoding and Decoding
CanJS has everything you need to build a web app’s front-end: components, templating, models, and more. We also publish all of the modules that provide the infrastructure for the higher-level APIs, including a utility library called can-util.
Chasen Le Hara