addMsgHandler method

void addMsgHandler(
  1. String channel,
  2. Function onMessage
)

Implementation

void addMsgHandler(String channel, Function onMessage) {
  service.addMsgHandler(channel, onMessage);
}