TerminalBridgeJsonChannel class final

JSON message channel layered over a TerminalBridge.

Outbound runtime output is exposed as JSON strings on outboundMessages. Inbound host messages can be fed through addInboundJson or bindInbound.

Constructors

TerminalBridgeJsonChannel(TerminalBridge bridge)
Creates a channel for bridge.

Properties

bridge TerminalBridge
The bridged terminal controller.
final
hashCode int
The hash code for this object.
no setterinherited
outboundMessages Stream<String>
Outbound JSON messages produced by the runtime.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addInboundJson(String message) → void
Decodes and applies one inbound JSON message.
bindInbound(Stream<String> messages) → void
Binds an inbound JSON stream to this channel.
dispose() Future<void>
Disposes channel subscriptions and closes the outbound stream.
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