Leader
Properties
Section titled “Properties”clientId
Section titled “clientId”readonly clientId: string;Methods
Section titled “Methods”close()
Section titled “close()”close(): void;Returns
Section titled “Returns”void
getSnapshot()
Section titled “getSnapshot()”getSnapshot(): LeaderSnapshot;Frozen; a new object only when the leader actually changes.
Returns
Section titled “Returns”resign()
Section titled “resign()”resign(): void;Give up the seat now. Peers take over immediately rather than waiting for the lease.
Returns
Section titled “Returns”void
setEligible()
Section titled “setEligible()”setEligible(eligible): void;Turn candidacy on or off. Eligibility is a property of the tab, not a component.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
eligible | boolean |
Returns
Section titled “Returns”void
subscribe()
Section titled “subscribe()”subscribe(fn): () => void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
fn | () => void |
Returns
Section titled “Returns”() => void