addChannelHandler static method

void addChannelHandler(
  1. String identifier,
  2. BaseChannelHandler handler
)

Adds a channel handler. All added handlers will be notified when events occur.

Implementation

static void addChannelHandler(String identifier, BaseChannelHandler handler) {
  sbLog.i(StackTrace.current, 'identifier: $identifier');
  _instance._chat.addChannelHandler(identifier, handler);
}