Select a node from the candidate set.
Eligible nodes to choose from.
Optionalregion: stringOptional preferred region; strategies typically restrict selection to nodes in this region when any exist, otherwise fall back to the full set.
Optionalkey: stringOptional routing key (for example the room id) used by deterministic strategies to map the same key to the same node.
The selected node, or undefined when candidates is empty.
Pluggable policy for choosing which SFU node should serve a given room.
Implementations receive the set of candidate nodes (already filtered to healthy, non-draining nodes by the SfuCluster) and return the chosen node, or
undefinedwhen no candidate is suitable.See