shouldRun method
Implementation
bool shouldRun(Channel sender, Channel receiver, {bool forceLocal = false}) {
if (!forceLocal && !canRunLocally && sender != kAnyChannel) return false;
return switch (mode) {
RpcNetworkerMode.authority => sender == kAuthorityChannel,
RpcNetworkerMode.selected => true,
RpcNetworkerMode.any => receiver == kAnyChannel,
RpcNetworkerMode.disabled => false,
};
}