CapsuleRouter class
Routes WebTransport capsules to their associated WebTransportSession.
Each session is keyed by its QUIC stream ID. If a capsule arrives on a stream for which no session exists, a new WebTransportSession is created automatically.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
closeSession(
int streamId) → void -
Remove and close the session associated with
streamId. -
getSession(
int streamId) → WebTransportSession? - Retrieve an existing session by its stream ID.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
routeCapsule(
int streamId, Capsule capsule) → void -
Route a
capsulereceived on the givenstreamId. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited