NativeTransport class final
The Rust transport: tokio + tungstenite + rustls, JSON parsed into a tape off the Dart thread, messages delivered in batches as external typed data (no copies), receive credits for flow control.
- Implemented types
Constructors
- NativeTransport(WsNativeLibrary library, {int window = 8 << 20})
-
Creates the transport on
library, whose runtime must be started (WsNativeLibrary.install;WsNativeLibrary.transportchecks that).const
Properties
- decodesJson → bool
-
Whether TransportTextMode.json decodes off the Dart thread.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- library → WsNativeLibrary
-
The loaded Rust library.
final
- name → String
-
A short name for logs and metrics (
dart,web,native,fake).no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsPing → bool
-
Whether this transport can send protocol pings.
no setteroverride
- window → int
-
Receive window in bytes: how far Rust may read ahead of Dart.
final
Methods
-
connect(
TransportRequest request, TransportListener listener) → TransportConnection -
Starts connecting; events arrive at
listener.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