Base class for all chat message histories. All chat message histories should extend this class.

Hierarchy (view full)

Constructors

Properties

messages: BaseMessage[] = []

Methods

  • Add a list of messages.

    Implementations should override this method to handle bulk addition of messages in an efficient manner to avoid unnecessary round-trips to the underlying store.

    Parameters

    • messages: BaseMessage[]

      A list of BaseMessage objects to store.

    Returns Promise<void>

""