getConnectedServerDelay method

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

Measures delay through the currently active runtime.

Returns milliseconds or a negative failure result. Choose an allowed HTTP(S) url; a failed measurement itself does not stop the session. Apple CONNECTED reports local native readiness independently of this probe.

Implementation

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