Class UserRepository

Allows retrieving users. An instance of this class must be obtained using Session.getUserRepository

Constructors

Properties

addressMap: Map<string, undefined | string> = ...
currentSubscriptions: Set<string> = ...
pendingSubscriptions: Set<string> = ...
presenceService: PresenceService
requestSubscriptionFulfilledSubject: Subject<string> = ...
requestSubscriptionSubject: Subject<string> = ...
state$: Observable<{}>

Type declaration

    Methods

    • Allows obtaining a representation of any user of the system

      Parameters

      • userId: string

        The id of the requested user

      Returns Observable<undefined | UserNg>

      An observable emitting a representation of the user with the provided ID as soon as it is available and, subsequently, all the updates that occur in any of its properties.

    • Allows obtaining a representation of any user of the system

      Parameters

      • address: string

        The address of the requested user

      Returns Observable<undefined | UserNg>

      An observable emitting a representation of the user with the provided ID as soon as it is available and, subsequently, all the updates that occur in any of its properties.