SessionRoute class

A live route bridging a client-side channel to a node-side channel for one brokered session. The Hub relays bytes by rewriting the channel id between the two ends.

Constructors

SessionRoute({required SessionId sessionId, required NodeId nodeId, required Principal principal, required SessionMode mode, required HubPeer client, required int clientChannel, required HubPeer node, required int nodeChannel, required String perSessionToken, SessionState state = SessionState.opening})
Creates a session route.

Properties

client → HubPeer
The client peer connection.
final
clientChannel int
The channel id on the client connection.
final
hashCode int
The hash code for this object.
no setterinherited
mode SessionMode
Exec or interactive shell.
final
node → HubPeer
The node peer connection.
final
nodeChannel int
The channel id on the node connection.
final
nodeId NodeId
The target node.
final
perSessionToken String
A per-session secret minted by the Hub (hijack protection / direct-mode grant binding).
final
principal Principal
The principal that opened the session.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionId SessionId
The session id.
final
state SessionState
Current lifecycle state.
getter/setter pair

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