close method

void close()

Shutdown the entire SSH connection. Sessions and channels will also be closed immediately.

Implementation

void close() {
  _closeChannels();
  _transport.close();
}