FakeTerminalTransport class final
A TerminalTransport that connects the controller to a FakeHost in memory.
- Implemented types
Constructors
- FakeTerminalTransport(FakeHost host)
-
Creates the transport for
host.
Properties
-
connected
→ List<
String> -
The stream paths the controller connected to, in order.
final
- connectError ↔ Object?
-
When set, connect throws it (a network error).
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → FakeHost
-
The host every stream goes to.
final
- identifyError ↔ Object?
-
When set, identify throws it (a failed token refresh or a network error).
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connect(
String streamPath) → Future< TerminalChannel> -
Connects to
streamPath(thestream_pathof the grant, below the server origin).override -
identify(
Map< String, Object?> hello) → Future<Map< String, Object?> > -
Returns the member
dofterminal.identifyforhello(the memberdofterminal.hello): the apps add the access token and a DPoP proof with the nonce ofhello, the console adds no token (docs/spec/15-client-architecture.md 23.1).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