Skip to main content

health

Returns true if the Desktop Homunculus engine is reachable and healthy, false otherwise. Useful for services that need to wait for the engine before proceeding.

Parameters

ParameterTypeDescription
(none)

Returns

Promise<boolean>

Example

const alive = await app.health();
if (!alive) {
console.error("Homunculus engine is not running");
}