MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / isReachable

Method isReachable

sdk/js/src/index.ts:513–521  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

511 }
512
513 async isReachable(): Promise<boolean> {
514 try {
515 // Use info endpoint to test connectivity with 500ms timeout
516 await send_rpc_request(this.endpoint, '/prpc/Tappd.Info', '{}', 500)
517 return true
518 } catch (error) {
519 return false
520 }
521 }
522}

Callers 1

index.test.tsFile · 0.45

Calls 1

send_rpc_requestFunction · 0.90

Tested by

no test coverage detected