Marmot-TS
    Preparing search index...

    Class GroupRumorHistory

    A group.history implementation that stores the parsed rumor events for a group and provies methods for querying

    Hierarchy

    Implements

    Index

    Client - Group History

    • Creates an async generator for paginated loading of historical rumor events.

      This method allows UI components to load historical messages in pages, enabling infinite scroll or paginated UI patterns.

      Parameters

      • Optionalfilter: Filter

        Optional filter to apply to the query

      Returns AsyncGenerator<Rumor[], void>

      Batches of Rumor events, with each batch containing up to filter.limit messages

    • Async generator that yields the current timeline of Rumor events whenever a new rumor is saved that matches filters or the history is cleared. The initial snapshot is emitted immediately on subscription, then again after every matching rumor event or cleared event.

      The generator runs until the caller breaks out of the loop or the consuming iterator is garbage-collected (via the finally cleanup).

      Parameters

      • Optionalfilters: Filter | Filter[]

      Returns AsyncGenerator<Rumor[]>

    Other

    prefixed: string | boolean
    • Type Parameters

      Parameters

      Returns this

    • Return an array listing the events for which the emitter has registered listeners.

      Returns (keyof GroupRumorHistoryEvents)[]

    • Return the number of listeners listening to a given event.

      Parameters

      Returns number

    • Return the listeners registered for a given event.

      Type Parameters

      Parameters

      • event: T

      Returns (
          (
              ...args: ArgumentMap<GroupRumorHistoryEvents>[Extract<
                  T,
                  keyof GroupRumorHistoryEvents,
              >],
          ) => void
      )[]

    • Type Parameters

      Parameters

      Returns this

    • Add a listener for a given event.

      Type Parameters

      Parameters

      Returns this

    • Add a one-time listener for a given event.

      Type Parameters

      Parameters

      Returns this

    • Remove all listeners, or those of the specified event.

      Parameters

      • Optionalevent: keyof GroupRumorHistoryEvents

      Returns this

    • Remove the listeners of a given event.

      Type Parameters

      Parameters

      Returns this