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