disconnect method

Future<void> disconnect()

Closes the connection with the Voximplant Cloud.

Implementation

Future<void> disconnect() async {
  await _channel.invokeMethod('Client.disconnect');
  VIClientState state = await getClientState();
  _changeClientState(state);
}