getConnectedServerDelay method

  1. @override
Future<int> getConnectedServerDelay(
  1. String url
)
override

Measures the delay to the currently connected V2Ray server. url is the server URL to test. Returns a Future that completes with the delay in milliseconds.

Implementation

@override
Future<int> getConnectedServerDelay(String url) async {
  return await methodChannel
      .invokeMethod('getConnectedServerDelay', {'url': url});
}