stdio library

Functions

jsonRpcChannel(StreamChannel<String> channel) → StreamChannel<Map<String, Object?>>
Adapts a channel of JSON strings into a channel of decoded JSON-RPC messages.
stdioChannel({required Stream<List<int>> input, required StreamSink<List<int>> output}) → StreamChannel<Map<String, Object?>>
Creates a StreamChannel for Stdio communication where each message is a map, encoded as JSON on its own line.