WebTransport class

Web-only Transport over the page's RTCDataChannel bridge. This is the Flutter-web / Dart-web client (and server) transport: the real grpcdc runtime above it is platform neutral, only this file touches dart:js_interop, so the VM never sees it. Hand it the bridge object your page exposes, e.g. from Flutter web via a small JS snippet that wraps an RTCDataChannel into the send/setOnMessage shape.

Implemented types

Constructors

WebTransport(JSObject bridge)

Properties

hashCode → int
The hash code for this object.
no setterinherited
onMessage → Stream<Uint8List>
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(Uint8List data) → void
override
toString() → String
A string representation of this object.
inherited

Operators

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