ts-algochat
    Preparing search index...

    Class SyncManager

    Sync Manager

    Coordinates background synchronization:

    • Periodically fetches new messages
    • Processes the send queue when online
    • Tracks online/offline state
    Index
    • Sets online/offline state

      Parameters

      • online: boolean

        Whether we're online

      Returns void

    • Performs a full sync

      • Fetches new messages for all known conversations
      • Processes the send queue

      Returns Promise<void>

    • Syncs a specific conversation

      Parameters

      • participant: string

        Address of the participant

      Returns Promise<Message[]>