High Availability
CloudClient toggles cloud-managed high availability for a context’s Trusted
Execution Environment — redundancy managed by Calimero Cloud. Unlike the rest of
the SDK, it’s a redirect helper: its methods open a browser window to the
cloud flow rather than making a fetch call, and it is standalone (not part of
MeroJs).
Enable / disable
Section titled “Enable / disable”import { CloudClient } from '@calimero-network/mero-js';
const cloud = new CloudClient(); // defaults to https://cloud.calimero.network
cloud.enableHA({ groupId: 'group-id', contextId: 'ctx-id', redirectUrl: window.location.href, // where the cloud sends the user back});
cloud.disableHA({ groupId: 'group-id', contextId: 'ctx-id' });Each call opens the cloud endpoint
(/enable-ha or /disable-ha) with the group_id, context_id, and
redirect_url as query parameters, then returns void.
Point it at a different cloud deployment:
const cloud = new CloudClient({ cloudBaseUrl: 'https://cloud.example.com' });For what the TEE admission policy governs and how nodes attest, see groups & governance → TEE admission policy.