Resolves or rejects when the managed connection closes permanently.
Resolves after the current native WebTransport session is ready.
Current browser-native WebTransport instance. Replaced after reconnects.
Close the WebTransport session.
OptionalcloseInfo:
{
closeCode?:
number;
reason?:
string
}
Open a reliable bidirectional stream.
Send data on a client-opened reliable unidirectional stream.
Send UTF-8 text as one unreliable datagram.
Managed WebTransport connection returned by
$webTransport.The connection wraps the browser-native
WebTransportobject and keeps its promise/stream model visible while adding small conveniences for sending bytes, text, datagrams, and unidirectional streams.