diff --git a/sdk/js/src/index.ts b/sdk/js/src/index.ts index 6e8e3206..e66e2660 100644 --- a/sdk/js/src/index.ts +++ b/sdk/js/src/index.ts @@ -253,7 +253,7 @@ export class DstackClient { async isReachable(): Promise { try { // Use info endpoint to test connectivity with 500ms timeout - await send_rpc_request(this.endpoint, '/prpc/Tappd.Info', '{}', 500) + await send_rpc_request(this.endpoint, '/Info', '{}', 500) return true } catch (error) { return false @@ -438,4 +438,14 @@ export class TappdClient extends DstackClient { }) return Object.freeze(result) } + + async isReachable(): Promise { + try { + // Use info endpoint to test connectivity with 500ms timeout + await send_rpc_request(this.endpoint, '/prpc/Tappd.Info', '{}', 500) + return true + } catch (error) { + return false + } + } }