Skip to main content

Class: SimpleChatStore<AdditionalMessageOptions>

Extends

Type Parameters

AdditionalMessageOptions extends object = object

Constructors

new SimpleChatStore()

new SimpleChatStore<AdditionalMessageOptions>(): SimpleChatStore<AdditionalMessageOptions>

Returns

SimpleChatStore<AdditionalMessageOptions>

Inherited from

BaseChatStore.constructor

Methods

addMessage()

addMessage(key, message, idx?): void

Parameters

key: string

message: ChatMessage<AdditionalMessageOptions>

idx?: number

Returns

void

Overrides

BaseChatStore.addMessage

Defined in

packages/core/dist/storage/chat-store/index.d.ts:16


deleteMessage()

deleteMessage(key, idx): void

Parameters

key: string

idx: number

Returns

void

Overrides

BaseChatStore.deleteMessage

Defined in

packages/core/dist/storage/chat-store/index.d.ts:18


deleteMessages()

deleteMessages(key): void

Parameters

key: string

Returns

void

Overrides

BaseChatStore.deleteMessages

Defined in

packages/core/dist/storage/chat-store/index.d.ts:17


getKeys()

getKeys(): MapIterator<string>

Returns

MapIterator<string>

Overrides

BaseChatStore.getKeys

Defined in

packages/core/dist/storage/chat-store/index.d.ts:19


getMessages()

getMessages(key): ChatMessage<AdditionalMessageOptions>[]

Parameters

key: string

Returns

ChatMessage<AdditionalMessageOptions>[]

Overrides

BaseChatStore.getMessages

Defined in

packages/core/dist/storage/chat-store/index.d.ts:15


setMessages()

setMessages(key, messages): void

Parameters

key: string

messages: ChatMessage<AdditionalMessageOptions>[]

Returns

void

Overrides

BaseChatStore.setMessages

Defined in

packages/core/dist/storage/chat-store/index.d.ts:14