syncThreads
client.chat.syncThreads(): Promise<void>
Synchronizes threads from the thread store to the chat manager.
Ensures that the in-memory chat manager is up-to-date with the persisted thread store, resolving any inconsistencies.
Parameters
No parameters.
Returns
Promise<void> — A promise that resolves when synchronization is complete
Example
import { CodeBoltClient } from '@codebolt/clientsdk';
const client = new CodeBoltClient();
const result = await client.chat.syncThreads();
console.log(result);