WebTransport

interface

interface WebTransport

MDN Reference

variable

var WebTransport: { … }

The constructor object for WebTransport, used to open a new WebTransport session to the server at the given url.

Constructors

constructor

new WebTransport(url: string | URL, options?: WebTransportOptions): WebTransport

Properties

closed

readonly closed: Promise<WebTransportCloseInfo>

MDN Reference

datagrams

readonly datagrams: WebTransportDatagramDuplexStream

MDN Reference

incomingBidirectionalStreams

readonly incomingBidirectionalStreams: ReadableStream<WebTransportBidirectionalStream>

MDN Reference

incomingUnidirectionalStreams

readonly incomingUnidirectionalStreams: ReadableStream<WebTransportReceiveStream>

MDN Reference

ready

readonly ready: Promise<void>

MDN Reference

prototype

prototype: WebTransport

Methods

close

close(closeInfo?: WebTransportCloseInfo): void

MDN Reference

createBidirectionalStream

createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>

MDN Reference

createUnidirectionalStream

createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportSendStream>

MDN Reference

createSendGroup

createSendGroup(): WebTransportSendGroup

MDN Reference