NativeWebTransport class final

A WebTransport client session backed by the native code asset.

Implemented types

Constructors

NativeWebTransport(String url, [WebTransportOptions? options, bool insecureSkipCertificateValidation = false])
Starts connecting to url.

Properties

closed → Future<void>
Completes once the session is closed from either side.
no setteroverride
congestionControl → WebTransportCongestionControl
The congestion control policy in use.
no setteroverride
datagrams → WebTransportDatagramDuplexStream
Unreliable, unordered messages.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
incomingBidirectionalStreams → Stream<WebTransportBidirectionalStream>
Streams opened by the peer.
no setteroverride
incomingUnidirectionalStreams → Stream<WebTransportReceiveStream>
Streams opened by the peer.
no setteroverride
insecureSkipCertificateValidation → bool
Accepts any server certificate (native only, insecure).
final
options → WebTransportOptions
The options the session was created with.
final
ready → Future<void>
Completes once the session is established, or fails with a WebTransportError (or a WebTransportException on the native backend).
no setteroverride
reliability → WebTransportReliabilityMode
Whether the session supports unreliable transport.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
session → NativeSession?
The established session, or null while connecting.
no setter
url → String
The session URL.
final

Methods

close([WebTransportCloseInfo? closeInfo]) → Future<void>
Closes the session.
override
createBidirectionalStream([WebTransportSendStreamOptions? options]) → Future<WebTransportBidirectionalStream>
Opens a reliable, ordered bidirectional stream.
override
createUnidirectionalStream([WebTransportSendStreamOptions? options]) → Future<WebTransportSendStream>
Opens a reliable, ordered unidirectional stream.
override
dispose() → void
Releases the native handles.
getStats() → Future<WebTransportStats>
Session statistics.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited