File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ export class DstackClient<T extends TcbInfo = TcbInfoV05x> {
253253 async isReachable ( ) : Promise < boolean > {
254254 try {
255255 // Use info endpoint to test connectivity with 500ms timeout
256- await send_rpc_request ( this . endpoint , '/prpc/Tappd. Info' , '{}' , 500 )
256+ await send_rpc_request ( this . endpoint , '/Info' , '{}' , 500 )
257257 return true
258258 } catch ( error ) {
259259 return false
@@ -438,4 +438,14 @@ export class TappdClient extends DstackClient<TcbInfoV03x> {
438438 } )
439439 return Object . freeze ( result )
440440 }
441+
442+ async isReachable ( ) : Promise < boolean > {
443+ try {
444+ // Use info endpoint to test connectivity with 500ms timeout
445+ await send_rpc_request ( this . endpoint , '/prpc/Tappd.Info' , '{}' , 500 )
446+ return true
447+ } catch ( error ) {
448+ return false
449+ }
450+ }
441451}
You can’t perform that action at this time.
0 commit comments