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;
        avatarUrl?: 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;
        avatarUrl?: 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;
        avatarUrl?: 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;
        avatarUrl?: string;
        displayName?: string;
        domain: string;
        id: string;
        mood?: PresenceMood;
        note?: string;
        online?: boolean;
        role?: "user" | "anonymous";
        username: string;
    }>>