Skip to main content

toWeb

method internal.Duplex.toWeb
unstable
Jump to headingDuplex.toWeb(streamDuplex: Duplex): { readable: streamWeb.ReadableStream; writable: streamWeb.WritableStream; }

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

Parameters Jump to heading

Return Type Jump to heading

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