reconnect method

Future<void> reconnect()

Implementation

Future<void> reconnect() async {
  _reconnectAttempts = 0;
  _reconnecting = false;
  _manuallyClosed = false;
  close();
  await connect();
}