Skip to main content

switchThread

client.chat.switchThread(data: ThreadIdRequest): Promise<void>

Switches to a different chat thread.

Changes the active conversation context to the specified thread, triggering any associated UI updates.

Parameters

ParameterTypeRequiredDescription
dataThreadIdRequestYesThe thread identifier to switch to

Returns

Promise<void> — A promise that resolves when the switch is complete

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.chat.switchThread(/* ThreadIdRequest */);
console.log(result);