Companion

Functions

Link copied to clipboard
fun from(src: JsIterable<Any?>): Duplex
fun from(src: Promise<Any?>): Duplex
fun from(src: Any): Duplex
fun from(src: String): Duplex
fun from(src: Stream): Duplex
fun from(src: Blob): Duplex

A utility method for creating duplex streams.

Link copied to clipboard
fun fromWeb(duplexStream: DuplexFromWebDuplexStream, options: DuplexOptions = definedExternally): Duplex

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

Link copied to clipboard
fun toWeb(streamDuplex: Duplex): DuplexToWebResult

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