initialized(authentication) {
    if (authentication) {
      this.userId = authentication.userId
      this.userInfo = authentication.userInfo
    }
    this.connectionListeners
      .filter(({ enabled }) => enabled)
      .forEach(({ listener }) => {
        listener.onSuccessfulHandshake(authentication)
      })
  }
/**
   * Notify listeners when connection is established
   */
Notify listeners when connection is established
Notify listeners when connection is established
initialized(authentication) {
    if (authentication) {
      this.userId = authentication.userId
      this.userInfo = authentication.userInfo
    }
    this.connectionListeners
      .filter(({ enabled }) => enabled)
      .forEach(({ listener }) => {
        listener.onSuccessfulHandshake(authentication)
      })
  }
initialized ( authentication ) { if ( authentication ) { this . userId = authentication . userId this . userInfo = authentication . userInfo } this . connectionListeners . filter ( ( { enabled } ) => enabled ) . forEach ( ( { listener } ) => { listener . onSuccessfulHandshake ( authentication ) } ) }
Notify listeners when connection is established
Notify listeners when connection is established