withCache
withCache: boolean
Controls whether the chat stores user's messages locally or depends on server-side storage. The default value is false
.
Example of usage:
const chat = new ChatBot(node, { withCache: true });
Changing withCache property dynamically
chat.setConfig({ withCache: true });
Accessing the current value of withCache
const chat = new ChatBot(node, { withCache: true });
const withCache = chat.getConfig().withCache;