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

    Constructors

    Accessors

    Methods

    • 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>