registerReceiver abstract method
Registers callback
as a handler for the server-side transmitted event
of name
. This is essentially the reverse of the transmit function,
i.e. when the server calls .transmit(...)
on the client, this function's
callback is called.
Implementation
StreamSubscription registerReceiver(
String name,
Function(dynamic data) callback,
);