disconnect method

dynamic disconnect()

Closes the SSH client connection.

await client.disconnect();

Implementation

disconnect() {
  shellCallback = null;
  uploadCallback = null;
  downloadCallback = null;
  stateSubscription.cancel();
  _channel.invokeMethod('disconnect', {
    "id": id,
  });
}