Skip to content
Advertisement

Tag: pipeline

How to pipe two ReadableStreams into one WritableStream in Javascript?

I have two ReadableStreams, and I want to pipe them into one WritableStream, where any data that comes through the ReadableStreams goes directly into the WritableStream right then. I can do the opposite, by using ReadableStream.prototype.tee() to split one ReadableStream into two, but I do not know how to combine two into one. Answer Manually, by racing the most recent

Advertisement