Companion

external object Companion(source)

Functions

Link copied to clipboard
external fun from(src: ArrayBuffer): Duplex
external fun from(src: AsyncGeneratorFunction<*, *>): Duplex
external fun from(src: AsyncIterable<Any?>): Duplex
external fun from(src: JsIterable<Any?>): Duplex
external fun from(src: Promise<Any?>): Duplex
external fun from(src: Any): Duplex
external fun from(src: String): Duplex
external fun from(src: Stream): Duplex
external fun from(src: Blob): Duplex

A utility method for creating duplex streams.

Link copied to clipboard
external 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
external fun toWeb(streamDuplex: Duplex): DuplexToWebResult

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