Skip to main content
GET
/
connect
/
proxies
/
{id}
/
ping
JavaScript
import Mobilerun from '@mobilerun/sdk';

const client = new Mobilerun();

const response = await client.connect.proxies.ping('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');

console.log(response.latency);
{
  "latency": {
    "avgMs": 123,
    "jitterMs": 123,
    "maxMs": 123,
    "measuredAt": "2023-11-07T05:31:56Z",
    "minMs": 123,
    "packetLoss": 123,
    "samples": 123,
    "target": "<string>"
  },
  "proxyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Response

The proxy's latest latency reading.

The latest cached latency reading for a proxy.

latency
object | null
required

The latest reading, or null if none has been taken yet.

proxyId
string<uuid>
required