disconnect method

void disconnect()

Closes the connection to the server.

Implementation

void disconnect() {
  if (_connectHasBeenCalled == true) {
    _channel.leave();
    _connector.disconnect();
  }
}