getServerDelay method
Measures the delay to a V2Ray server using the provided configuration and URL.
config
is the V2Ray configuration in JSON format.
url
is the server URL to test.
Returns a Future that completes with the delay in milliseconds.
Implementation
@override
Future<int> getServerDelay({
required String config,
required String url,
}) async {
return await methodChannel.invokeMethod('getServerDelay', {
'config': config,
'url': url,
});
}