sendFunction method
- int function,
- Uint8List data, {
- Channel channel = kAnyChannel,
- Channel? receiver,
- bool forceLocal = false,
inherited
Implementation
void sendFunction(
int function,
Uint8List data, {
Channel channel = kAnyChannel,
Channel? receiver,
bool forceLocal = false,
}) => sendMessage(
RpcNetworkerPacket(
function: function,
data: data,
channel: isServer ? (receiver ?? defaultReceiverChannel) : channel,
),
isServer ? channel : (receiver ?? defaultReceiverChannel),
);