reconnect method

Future<void> reconnect()

Implementation

Future<void> reconnect() async {
  if(!_connectHasBeenCalledAtLeastOneTime) {
    throw "'reconnect' only can be called after a 'start'";
  }

  logger("reconnect", level: Level.debug);
  await _connect();
}