NodeRuntime class

An embeddable OmnyShell node: maintains a secure connection to the Hub, registers, advertises capabilities, and serves sessions, reconnecting with backoff if the connection drops.

Constructors

NodeRuntime(NodeConfig config)
Creates a node runtime from config.

Properties

activeSessions int
The number of sessions currently being served.
no setter
config NodeConfig
The node configuration.
final
detachedSessions int
The number of detached sessions held in this node's memory.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state NodeState
The current lifecycle state.
no setter
uid OmnyUid?
This node's deterministic global UID, available once connect has begun.
no setter

Methods

connect() Future<void>
Connects to the Hub, authenticates and registers.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shutdown() Future<void>
Disconnects and stops the node. No further reconnection is attempted.
toString() String
A string representation of this object.
inherited

Operators

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