@globalleaderboards/sdk - v0.5.0
    Preparing search index...

    Class OfflineQueue

    Offline queue for managing API operations when offline

    Features:

    • Automatic persistence using chrome.storage.sync
    • Intelligent batching of submit operations
    • FIFO processing order
    • Event-based notifications
    • Automatic cleanup of expired items
    Index

    Constructors

    Methods

    • Mark operations as processed and remove from queue

      Parameters

      • queueIds: string[]

      Returns Promise<void>

    • Mark operation as failed and increment retry count

      Parameters

      • queueId: string
      • permanent: boolean = false

      Returns Promise<void>

    • Set processing state

      Parameters

      • processing: boolean

      Returns void