addConnectionStatusListener(listener) {
    this.connectionListeners.push({
      enabled: true,
      listener: Object.assign(new ConnectionStatusListener(), listener)
    })
    return this.connectionListeners.length - 1
  }
/**
   * Add a connection listener to handle life cycle connection events
   * @param {ConnectionStatusListener} listener
   * @return {number} handler
   */
Add a connection listener to handle life cycle connection events
@param {ConnectionStatusListener} listener
@return {number} handler
Add a connection listener to handle life cycle connection events @param { ConnectionStatusListener } listener @return { number } handler
addConnectionStatusListener(listener) {
    this.connectionListeners.push({
      enabled: true,
      listener: Object.assign(new ConnectionStatusListener(), listener)
    })
    return this.connectionListeners.length - 1
  }
addConnectionStatusListener ( listener ) { this . connectionListeners . push ( { enabled : true , listener : Object . assign ( new ConnectionStatusListener ( ) , listener ) } ) return this . connectionListeners . length - 1 }
Add a connection listener to handle life cycle connection events
 @param {ConnectionStatusListener} listener
 @return {number} handler
Add a connection listener to handle life cycle connection events @param { ConnectionStatusListener } listener @return { number } handler