Skip to main content
method default.Duplex.toWeb
unstable
Duplex.toWeb(streamDuplex: Duplex): { readable: streamWeb.ReadableStream; writable: streamWeb.WritableStream; }
Deprecated

A utility method for creating a web ReadableStream and WritableStream from a Duplex.

Parameters

streamDuplex: Duplex

Return Type

{ readable: streamWeb.ReadableStream; writable: streamWeb.WritableStream; }
Back to top