getConnectedServerDelay method

Future<int> getConnectedServerDelay({
  1. String url = 'https://google.com/generate_204',
})

Measures the delay to the currently connected V2Ray server. url is the server URL to test for delay (default is 'https://google.com/generate_204'). Returns a Future that completes with the delay in milliseconds.

Implementation

Future<int> getConnectedServerDelay({
  String url = 'https://google.com/generate_204',
}) async {
  return FlutterV2rayPlatform.instance.getConnectedServerDelay(url);
}