All Projects → deanhume → streams

deanhume / streams

Licence: MIT license
Experimenting with the Streams spec

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Experimenting with the Streams API

The code in this repo is used as an example for an article on my blog at deanhume.com.

Streams API

The benefit of using streams is that if you are sending large chunks of data over the web, you can start processing the data immediately as you receive it, without having to wait for the full download to complete. For example, if you think of a large video file and imagine how long it might take to download the whole file. Using a stream allows you to download only the small amount of data that you need to view the video instead of the whole file - this means that you can view the video as quickly as the network takes to get you just those bytes.

In this article, I run through a simple example and show you how to get started with the Streams API in no time!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].