Braze JavaScript SDK
    Preparing search index...

    Function requestImmediateDataFlush

    • By default, data logged to Braze through the SDK is queued locally and sent to Braze's servers asynchronously on a regular interval. This is done to optimize network usage and provide resiliency against network or server outages. This method bypasses the interval and immediately flushes queued data.

      Parameters

      • Optionalcallback: DataFlushCallback

        Invoked when the flush completes with a boolean parameter that indicates whether or not the flush was successful. If the flush is unsuccessful, pending data will be flushed during the next successful flush.

      Returns Promise<void>