Update frontend/local-client-cli/src/healthcheck.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
3729778b12
commit
eec05bd6ab
1 changed files with 6 additions and 1 deletions
|
|
@ -13,7 +13,12 @@ function isHealthStatus(value: unknown): value is NetworkConnectionStatus {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
const obj = value as Record<string, unknown>;
|
||||||
|
return (
|
||||||
|
typeof obj.isSuccessful === "boolean" &&
|
||||||
|
typeof obj.isWebSocketConnected === "boolean" &&
|
||||||
|
typeof obj.serverMessage === "string"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function main(): void {
|
function main(): void {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue