Expose native ping RTT in WASM SDK
All checks were successful
CI / checks (push) Successful in 6m41s

This commit is contained in:
Alois 2026-07-28 02:46:41 +02:00
commit fa271e62be
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
3 changed files with 46 additions and 2 deletions

View file

@ -857,6 +857,10 @@ export class MTPClient {
return this.raw.client.state;
}
get pingMs(): number | null {
return this.raw.client.ping_ms ?? null;
}
async #loadStoredCredentials() {
if (this.#credentials || !this.#options.storage) {
return;