addConnectionHandler static method

void addConnectionHandler(
  1. String identifier,
  2. ConnectionHandler handler
)

Adds a connection handler. All added handlers will be notified when events occurs.

Implementation

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