Function: getLeader()
function getLeader(name, options?): Leader;
One Leader per name per tab. Eligibility is deliberately not part of the key: two Leaders on one name would share a bus and a clientId, and since a post never loops back locally, neither would ever see the other's claims. Timing options are first-wins, like every other engine here.
Parameters
| Parameter | Type |
|---|---|
name | string |
options? | LeaderOptions |