StoreSessionProgressCallback

Type Alias StoreSessionProgressCallback

StoreSessionProgressCallback: (
    id: string,
    current: number,
    total: number,
) => void

A callback function used to track the progress of storing a session.

This callback is invoked during the session storage process to provide updates on the progress, including the current step and the total number of steps. When current equals total, the session storage process is complete.

Use this callback to monitor the progress of session storage operations. For example, you can use it to update a progress bar or display status messages to the user.

Type declaration

    • (id: string, current: number, total: number): void
    • Parameters

      • id: string

        The unique identifier of the session being stored.

      • current: number

        The current progress step.

      • total: number

        The total number of steps in the session storage process.

      Returns void




Was this page helpful? Please leave a thumbs up or down.