MCPcopy Create free account
hub / github.com/Microck/opencode-studio / checkHealth

Function checkHealth

client-next/src/lib/api.ts:115–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113}
114
115export async function checkHealth(): Promise<boolean> {
116 try {
117 await api.get('/health', { timeout: 3000 });
118 return true;
119 } catch {
120 return false;
121 }
122}
123
124export async function checkVersion(): Promise<VersionCheck> {
125 try {

Callers 2

pollHealthFunction · 0.90
getDebugInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected