ping method
Implementation
void ping() {
if (!connected) return;
try {
_api.ping();
} catch (e) {
error = 'Ping failed: $e';
_notify();
}
}
void ping() {
if (!connected) return;
try {
_api.ping();
} catch (e) {
error = 'Ping failed: $e';
_notify();
}
}