Skip to main content
method internal.Duplex.fromWeb
unstable
Duplex.fromWeb(
duplexStream: { readable: streamWeb.ReadableStream; writable: streamWeb.WritableStream; },
options?: Pick<DuplexOptions,
"allowHalfOpen"
| "decodeStrings"
| "encoding"
| "highWaterMark"
| "objectMode"
| "signal"
>
,
): Duplex
Deprecated

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

Parameters

duplexStream: { readable: streamWeb.ReadableStream; writable: streamWeb.WritableStream; }
optional
options: Pick<DuplexOptions,
"allowHalfOpen"
| "decodeStrings"
| "encoding"
| "highWaterMark"
| "objectMode"
| "signal"
>

Return Type

Back to top