callFunction method
Implementation
bool callFunction(
int function,
Uint8List data, {
Channel sender = kAnyChannel,
bool forceLocal = false,
}) {
final rpcFunction = functions[function];
if (rpcFunction == null) return false;
if (!rpcFunction.shouldRun(sender, forceLocal: forceLocal)) return false;
rpcFunction.pipe.sendMessage(data);
return true;
}