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

Method isReachable

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

Source from the content-addressed store, hash-verified

315 }
316
317 async isReachable(): Promise<boolean> {
318 try {
319 // Use info endpoint to test connectivity with 500ms timeout
320 await send_rpc_request(this.endpoint, '/Info', '{}', 500)
321 return true
322 } catch (error) {
323 return false
324 }
325 }
326
327 /**
328 * Emit an event. This extends the event to RTMR3 on TDX platform.

Callers

nothing calls this directly

Calls 1

send_rpc_requestFunction · 0.90

Tested by

no test coverage detected