disconnect method

Future<void> disconnect()

Disconnects from the room, notifying server of disconnection.

Implementation

Future<void> disconnect() async {
  if (connectionState != ConnectionState.disconnected) {
    engine.signalClient.sendLeave();
  }
  await _cleanUp();
}