FakeTerminal class final

The terminal of the fake server: sessions, the host link, the open device streams and the server values the handlers use (24 17 defaults; tests lower them).

Constructors

FakeTerminal()

Properties

closes → List<(String, int, String?)>
Every close code the fake sent to a device stream, in order, as (session, code, reason).
final
hashCode → int
The hash code for this object.
no setterinherited
The host service behind the stream endpoint; null closes every stream with 4102.
getter/setter pair
maxSessionsPerPerson ↔ int
terminal.max_sessions_per_person.
getter/setter pair
quickReattachWindow ↔ Duration
terminal.quick_reattach_window.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessions → Map<String, FakeTerminalSession>
The sessions by ID.
final
sessionTokenTtl ↔ Duration
terminal.session_token_ttl.
getter/setter pair
streams → Map<String, FakeTerminalStream>
The open device stream per session.
final

Methods

closeStream(String sessionId, int code, [String? reason]) → void
Closes the open stream of sessionId, if any, with code and reason.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open(String sessionId, String deviceId, void close(int code, String? reason)) → FakeTerminalStream
Registers a new device stream of sessionId on deviceId; close closes its socket.
toString() → String
A string representation of this object.
inherited

Operators

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