Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UserPresenceSubscription

Hierarchy

Index

Accessors

available

  • get available(): boolean
  • Returns boolean

state

  • get state(): Map<string, any>
  • Returns Map<string, any>

username

  • get username(): string
  • Returns string

Methods

addListener

asObservable

events

  • Provides the events emitted by this object as an Observable stream.

    example
    
    eventEmitter.events()
      .filter(e => e.name === "myevent")
      .subscribe(e => console.log(e));

    Returns Observable<IConvergenceEvent>

    An Observable stream of all events emitted by this object.

off

on

once

  • Adds a single shot event listener for the specified event. The listener will be called the first time the specified event is fired after the event registration occurs, after which the registration will be removed and no further events will be passed to the listener.

    Parameters

    Returns ConvergenceEventEmitter<IConvergenceEvent>

    This object, in support of a fluent API.

removeAllListeners

removeListener

removeListeners

unsubscribe

  • unsubscribe(): void
  • Returns void

Object literals

Static Events

Events: object

AVAILABILITY_CHANGED

AVAILABILITY_CHANGED: string = PresenceAvailabilityChangedEvent.NAME

STATE_CLEARED

STATE_CLEARED: string = PresenceStateClearedEvent.NAME

STATE_REMOVED

STATE_REMOVED: string = PresenceStateRemovedEvent.NAME

STATE_SET

STATE_SET: string = PresenceStateSetEvent.NAME