WebTransport
open external class WebTransport(url: String, options: WebTransportOptions = definedExternally)(source)
Available only in secure contexts.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
suspend fun createBidirectionalStream(options: WebTransportSendStreamOptions = definedExternally): WebTransportBidirectionalStream
Link copied to clipboard
fun createBidirectionalStreamAsync(options: WebTransportSendStreamOptions = definedExternally): Promise<WebTransportBidirectionalStream>
Link copied to clipboard
suspend fun createUnidirectionalStream(options: WebTransportSendStreamOptions = definedExternally): WritableStream<*>
Link copied to clipboard
fun createUnidirectionalStreamAsync(options: WebTransportSendStreamOptions = definedExternally): Promise<WritableStream<*>>