connectionToServerFail(failure) {
    this.connectionListeners
      .filter(({ enabled }) => enabled)
      .forEach(({ listener }) => {
        listener.onConnectionToServerFail(failure)
      })
  }
/**
   * Notify listeners when connection to server fail
   */
Notify listeners when connection to server fail
Notify listeners when connection to server fail
connectionToServerFail(failure) {
    this.connectionListeners
      .filter(({ enabled }) => enabled)
      .forEach(({ listener }) => {
        listener.onConnectionToServerFail(failure)
      })
  }
connectionToServerFail ( failure ) { this . connectionListeners . filter ( ( { enabled } ) => enabled ) . forEach ( ( { listener } ) => { listener . onConnectionToServerFail ( failure ) } ) }
Notify listeners when connection to server fail
Notify listeners when connection to server fail