forceReconnect method

Future<void> forceReconnect()

Forces a reconnection (useful for testing connection resilience)

Implementation

Future<void> forceReconnect() async {
  _log('Forcing reconnection');
  await disconnect();
  await Future.delayed(Duration(milliseconds: 100));
  await connect();
}