This example processes an stream of inputs using a TransformStream inside a web worker. It uses transferable ReadableStream and WritableStream to pipe data to and from the worker, allowing the page to show the results as they are being received and remain responsive because the processing happens in a separate thread.

This demo requires the browser to support transferable streams. At the time of writing, transferable streams are available in Chrome Canary 73 with the "experimental Web platform features" flag enabled. Go to chrome://flags/#enable-experimental-web-platform-features to enabled/disable this flag.

JANK METER