registerProcedure abstract method

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

Registers callback as a handler for the server-side transmitted remote procedure call (RPC) of name. This is essentially the reverse of the invoke function, i.e. when the server calls .invoke(...) on the client, this function's callback is called.

Implementation

StreamSubscription registerProcedure(
  String name,
  Function(dynamic data) callback,
);