addMsgHandler method

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

Implementation

void addMsgHandler(String channel, Function onMessage) {
  _msgHandlers[channel] = onMessage;
}