OmnyShellConnection class abstract

A duplex, frame-oriented link between two OmnyShell peers.

This is the transport port: the protocol and runtimes depend only on this abstraction, while the concrete WebSocket-on-TLS adapter (WebSocketConnection) lives in the infrastructure layer. Every frame is an already-decoded OmnyShellFrame; the connection owns the FrameCodec.

Constructors

OmnyShellConnection()

Properties

done Future<void>
Completes when the connection has fully closed.
no setter
hashCode int
The hash code for this object.
no setterinherited
incoming Stream<OmnyShellFrame>
Inbound frames decoded from the peer. A single-subscription stream; it closes when the connection closes.
no setter
isOpen bool
Whether the connection is currently open.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close([int? code, String? reason]) Future<void>
Closes the connection, optionally with a WebSocket code/reason.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(OmnyShellFrame frame) → void
Sends frame to the peer. Silently dropped if the connection is closed.
toString() String
A string representation of this object.
inherited

Operators

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