addConnctionListener static method

dynamic addConnctionListener(
  1. String listenerId,
  2. ConnectionListener listenerClass
)

The ConnectionListener class provides you with all the status of the connection to CometChat web-socket servers

Implementation

static addConnctionListener(
    String listenerId, ConnectionListener listenerClass) {
  _connectionListeners[listenerId] = listenerClass;
}