subscribeMessage method

Future<void> subscribeMessage(
  1. String code,
  2. String channel,
  3. Function callback
)

Implementation

Future<void> subscribeMessage(
  String code,
  String channel,
  Function callback,
) async {
  addMsgHandler(channel, callback);
  evalJavascript(code);
}