Skip to content

Commit

Permalink
Fix onMessage for rpc server
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Jan 17, 2025
1 parent 630928b commit e71cceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/networker/networker/lib/src/plugin/rpc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ final class RpcServerNetworkerPipe extends RpcNetworkerPipe {
final receiver = packet.channel;
final newPacket = packet.withChannel(channel);
if (validate &&
!isValidCall(newPacket.function, receiver, newPacket.channel)) {
!isValidCall(newPacket.function, newPacket.channel, receiver)) {
return;
}
if (!(filter?.call(newPacket, receiver) ?? false)) {
Expand Down

0 comments on commit e71cceb

Please sign in to comment.