Package-level declarations

Types

Link copied to clipboard
open class WebTransport(url: String, options: WebTransportOptions = definedExternally)

The WebTransport interface of the WebTransport API provides functionality to enable a user agent to connect to an HTTP/3 server, initiate reliable and unreliable transport in either or both directions, and close the connection once it is no longer needed. Available only in secure contexts.

Link copied to clipboard

The WebTransportBidirectionalStream interface of the WebTransport API represents a bidirectional stream created by a server or a client that can be used for reliable transport. Provides access to a WebTransportReceiveStream for reading incoming data, and a WebTransportSendStream for writing outgoing data. Available only in secure contexts.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The WebTransportDatagramDuplexStream interface of the WebTransport API represents a duplex stream that can be used for unreliable transport of datagrams between client and server. Provides access to a ReadableStream for reading incoming datagrams, a WritableStream for writing outgoing datagrams, and various settings and statistics related to the stream. Available only in secure contexts.

Link copied to clipboard
Link copied to clipboard
open class WebTransportError(message: String = definedExternally, options: WebTransportErrorOptions = definedExternally) : DOMException, Serializable

The WebTransportError interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call). Available only in secure contexts.

Link copied to clipboard
Link copied to clipboard
sealed interface WebTransportErrorSource
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The WebTransportReceiveStream interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream. Available only in secure contexts.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The WebTransportSendStream interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams. Available only in secure contexts.

Link copied to clipboard

Properties

Functions

Link copied to clipboard

The createBidirectionalStream() method of the WebTransport interface asynchronously opens and returns a bidirectional stream.

Link copied to clipboard

The createUnidirectionalStream() method of the WebTransport interface asynchronously opens a unidirectional stream.

Link copied to clipboard

The getStats() method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.

The getStats() method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.

The getStats() method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.