connectionClosed() {
    this.userId = null
    this.userInfo = null
    this.connectionListeners
      .filter(({ enabled }) => enabled)
      .forEach(({ listener }) => {
        listener.onConnectionClosed()
      })
  }
/**
   * Notify listeners when connection is closed
   */
Notify listeners when connection is closed
Notify listeners when connection is closed
connectionClosed() {
    this.userId = null
    this.userInfo = null
    this.connectionListeners
      .filter(({ enabled }) => enabled)
      .forEach(({ listener }) => {
        listener.onConnectionClosed()
      })
  }
connectionClosed ( ) { this . userId = null this . userInfo = null this . connectionListeners . filter ( ( { enabled } ) => enabled ) . forEach ( ( { listener } ) => { listener . onConnectionClosed ( ) } ) }
Notify listeners when connection is closed
Notify listeners when connection is closed