Hiyve Components - v1.0.0
    Preparing search index...

    Function useOnlineUsers

    • Polls the Cloud presence API to detect which users are online.

      Parameters

      • callerProfileId: string | undefined

        The current user's profile ID used for presence matching.

      • matchConfig: PresenceMatchConfig

        Defines which profile fields to use for presence matching.

      • pollInterval: number = DEFAULT_POLL_INTERVAL

        Polling interval in milliseconds (default 30s).

      • OptionalonError: (error: Error) => void

        Optional error callback. Errors are swallowed by default.

      Returns UseOnlineUsersResult