RemoteClient.withoutJson constructor

RemoteClient.withoutJson(
  1. StreamChannel<Map> channel
)

Implementation

RemoteClient.withoutJson(this.channel) {
  _ctrl.local.stream
      .map((m) => m.toJson())
      .cast<Map>()
      .forEach(channel.sink.add);
  channel.stream.listen((m) {
    _ctrl.local.sink.add(OperationMessage.fromJson(m));
  });
}