Hierarchy

  • PresenceService

Constructors

Properties

event$: Observable<PresenceEvent>
wacRequest: WacRequest

Methods

  • Get the presence associated with given address

    Parameters

    • address: string

    Returns Observable<Readonly<{
        activity: PresenceActivity;
        address: string;
        avatar: string;
        displayName: string;
        domain: string;
        id: string;
        mood: PresenceMood;
        note: string;
        online: boolean;
        role: "user" | "anonymous";
        username: string;
    }>>

  • Returns the list of presences that we are currently subscribed to

    Parameters

    • withoutAvatar: boolean = false

    Returns Observable<Readonly<{
        activity: PresenceActivity;
        address: string;
        avatar: string;
        displayName: string;
        domain: string;
        id: string;
        mood: PresenceMood;
        note: string;
        online: boolean;
        role: "user" | "anonymous";
        username: string;
    }>[]>

  • Subscribe to user's presence updates

    Parameters

    • address: string

    Returns Observable<Readonly<{
        activity: PresenceActivity;
        address: string;
        avatar: string;
        displayName: string;
        domain: string;
        id: string;
        mood: PresenceMood;
        note: string;
        online: boolean;
        role: "user" | "anonymous";
        username: string;
    }>>

  • Subscribe to presence updates for the specified addresses

    Parameters

    • addresses: string[]

    Returns Observable<Readonly<{
        activity: PresenceActivity;
        address: string;
        avatar: string;
        displayName: string;
        domain: string;
        id: string;
        mood: PresenceMood;
        note: string;
        online: boolean;
        role: "user" | "anonymous";
        username: string;
    }>[]>

  • Updates the presence associated with given address

    Parameters

    Returns Observable<Readonly<{
        activity: PresenceActivity;
        address: string;
        avatar: string;
        displayName: string;
        domain: string;
        id: string;
        mood: PresenceMood;
        note: string;
        online: boolean;
        role: "user" | "anonymous";
        username: string;
    }>>

Generated using TypeDoc