Rxova
Skip to content

Leader

readonly clientId: string;
close(): void;

void


getSnapshot(): LeaderSnapshot;

Frozen; a new object only when the leader actually changes.

LeaderSnapshot


resign(): void;

Give up the seat now. Peers take over immediately rather than waiting for the lease.

void


setEligible(eligible): void;

Turn candidacy on or off. Eligibility is a property of the tab, not a component.

ParameterType
eligibleboolean

void


subscribe(fn): () => void;
ParameterType
fn() => void

() => void