disconnect method

Future<bool> disconnect()

Send a disconnect command, remotely closing the Socket. Used by exit command. See processCommand.

Implementation

Future<bool> disconnect() async {
  var response = await _sendCommand("disconnect socket");
  return response?.contains('true') ?? false;
}