WebTransport
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.
Properties
The closed
read-only property of the WebTransport interface returns a promise that resolves when the transport is closed.
The datagrams
read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission.
The incomingBidirectionalStreams
read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server.
The incomingUnidirectionalStreams
read-only property of the WebTransport interface represents one or more unidirectional streams opened by the server.
Functions
The close()
method of the WebTransport interface closes an ongoing WebTransport session.
The createBidirectionalStream()
method of the WebTransport interface asynchronously opens and returns a bidirectional stream.
The createUnidirectionalStream()
method of the WebTransport interface asynchronously opens a unidirectional stream.