registerReceiver abstract method

StreamSubscription registerReceiver(
  1. String name,
  2. dynamic callback(
    1. dynamic data
    )
)

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,
);