Respond With a ReadableStream in MSW

Share this video with your friends

Send Tweet

You can send any data from your response resolvers. Let's implement a video streaming functionality by responding with a ReadableStream with Mock Service Worker. As a cherry on top, you will learn how to transform that video stream to inject server-side latency and see how our application's player handles it.