pingServer method
Ping server with configuration
Implementation
Future<int> pingServer({
required String config,
required String url,
int timeout = 10,
}) async {
_log('pingServer called');
try {
final result = await _channel.invokeMethod<int>('ping', {
'config': config,
'url': url,
'timeout': timeout,
});
return result ?? -1;
} catch (e) {
_log('Ping server error: $e');
return -1;
}
}