ping abstract method

Future<PingResult> ping(
  1. String ip, {
  2. Duration? timeout,
  3. PingType type = PingType.disco,
})

Tailscale-level ping to a tailnet IP or MagicDNS name.

Reports round-trip time and whether the path is direct node-to-node, DERP-relayed, or not classifiable for the chosen ping type.

Implementation

Future<PingResult> ping(
  String ip, {
  Duration? timeout,
  PingType type = PingType.disco,
});