RemoteClient.withoutJson constructor
RemoteClient.withoutJson(
- 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));
});
}