MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / getStatus

Function getStatus

apps/desktop/main/api/index.ts:39–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39export function getStatus(): ApiServerStatus {
40 return {
41 running: server !== null && startedAt !== null,
42 port: server !== null && startedAt !== null ? runningPort : null,
43 startedAt,
44 error: lastError,
45 }
46}
47
48const PORT_FALLBACK_LIMIT = 10
49

Callers 2

setEnabledFunction · 0.85
setPortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected