reconnect method

Future<void> reconnect()

Implementation

Future<void> reconnect() async {
  if (_config == null) return;
  await disconnect();
  connect(_config!);
}