reticulum-js
    Preparing search index...

    In-memory deferred delivery queue.

    Index
    _buckets: Map<string, PendingBlob[]>
    globalLimit: number
    • Drains and returns all pending blobs for a subscriber (FIFO).

      Parameters

      • subscriberHash: Uint8Array<ArrayBufferLike>

      Returns PendingBlob[]

    • Drains at most max blobs for a subscriber (FIFO), leaving any remainder.

      Parameters

      • subscriberHash: Uint8Array<ArrayBufferLike>
      • max: number

      Returns PendingBlob[]

    • Drains at most max blobs for (subscriber, channel) (FIFO). Non-matching blobs stay queued in their original relative order. This is the /rfed/pull paging primitive.

      Parameters

      • subscriberHash: Uint8Array<ArrayBufferLike>
      • channelHash: Uint8Array<ArrayBufferLike>
      • max: number

      Returns PendingBlob[]

    • Enqueues a blob for an unreachable subscriber.

      Per-subscriber overflow drops the oldest; the global cap back-pressures (the enqueue is silently skipped).

      Parameters

      • subscriberHash: Uint8Array<ArrayBufferLike>
      • channelHash: Uint8Array<ArrayBufferLike>
      • blob: Uint8Array<ArrayBufferLike>
      • perSubscriberLimit: number

      Returns void

    • Drops entries older than maxAgeSec (SPEC §7: 7-day periodic prune).

      Parameters

      • maxAgeSec: number

      Returns number

      count evicted.

    • Exports every pending blob as serializable records (grouped by subscriber). Used by the @reticulum/node FS adapter.

      Returns {
          blob: Uint8Array;
          channelHash: Uint8Array;
          enqueuedAt: number;
          subscriberHash: Uint8Array;
      }[]

    • Parameters

      • subscriberHash: Uint8Array<ArrayBufferLike>
      • channelHash: Uint8Array<ArrayBufferLike>

      Returns boolean

    • Replaces the queue with the given records (direct population, used on load). Clears any existing buckets first.

      Parameters

      • records: {
            blob: Uint8Array;
            channelHash: Uint8Array;
            enqueuedAt: number;
            subscriberHash: Uint8Array;
        }[]

      Returns void