Skip to main content

Tracker API reference

Definition

This document provides a detailed walkthrough of the tracker API methods and properties

queueEmpty$

This property type is Subject<boolean> and it will emit to its observers true each time the queue becomes empty

Usage in wrappers


import { initializeScoped } from '@pulse/browser';


const pulse = initializeScoped({
app: 'your application name'
});


// Now you can subscribe to queueEmpty$ from pulse object
pulse.queueEmpty$.subscribe();

getState

This is a function that returns a Promise<Record<string, unknown>> which represents the Pulse SDK state.


import { initializeScoped } from '@pulse/browser';

const pulse = initializeScoped({
app: 'your application name'
});
const pulseState = await pulse.getState();