SSHForwardChannel constructor

SSHForwardChannel(
  1. SSHChannel _channel
)

Implementation

SSHForwardChannel(this._channel) {
  _sinkController.stream
      .map((data) => data is Uint8List ? data : Uint8List.fromList(data))
      .map((data) => SSHChannelData(data))
      .pipe(_channel.sink);
}