Collection that handles message lists, also supporting local caching.

Hierarchy

Properties

The filter to show matched messages only.

Accessors

  • get channel(): Channel
  • The channel of the messages.

    Returns Channel

  • get hasNext(): boolean
  • Whether there's more data to load in next (latest) direction.

    Returns boolean

  • get hasPrevious(): boolean
  • Whether there's more data to load in previous (oldest) direction.

    Returns boolean

  • get succeededMessages(): Message[]
  • The list of succeeded message list in this collection.

    Returns Message[]

Methods

  • Returns void

    Disposes current BaseMessageCollection and stops all events from being received.

  • Returns Promise<BaseMessage[]>

    Loads next (latest direction) message lists.

  • Returns Promise<BaseMessage[]>

    Loads previous (oldest direction) message lists.

  • Parameters

    • reqId: string

    Returns Promise<void>

    Remove specific failed message of the channel.