SessionState enum
Lifecycle state of a session as tracked by the Hub.
Values
- opening → const SessionState
-
The open handshake is in flight.
- open → const SessionState
-
The session is live and relaying data.
- closing → const SessionState
-
A close has been initiated; teardown is in progress.
- closed → const SessionState
-
The session has fully closed.
- detached → const SessionState
-
The session is detached: the client has disconnected but the node keeps the PTY, shell and child processes alive for a later resume.
- attached → const SessionState
-
The session is attached: a client is connected and relaying data. (The detached-session APIs report this transiently while a resume completes.)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
parse(
String value) → SessionState -
Parses a wire value, defaulting to SessionState.detached for unknown
input (the detached-session APIs only ever serialize
detached).
Constants
-
values
→ const List<
SessionState> - A constant List of the values in this enum, in order of their declaration.