disconnect method

Future<void> disconnect()

Attempt to gracefully close the session

Implementation

Future<void> disconnect() async {
  await _disconnect(state: XmppConnectionState.notConnected);
}