Update frontend/local-client-cli/src/healthcheck.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Andras Schmelczer 2025-11-18 22:20:20 +00:00 committed by GitHub
parent 3729778b12
commit eec05bd6ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,12 @@ function isHealthStatus(value: unknown): value is NetworkConnectionStatus {
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 {