SSHSession constructor
SSHSession(
- SSHChannel _channel
Implementation
SSHSession(this._channel) {
_channel.setRequestHandler(_handleRequest);
_channelDataSubscription = _channel.stream.listen(
_handleChannelData,
onDone: _handleChannelDataDone,
);
_stdinController.stream
.map((data) => SSHChannelData(data))
.pipe(_channel.sink);
}