Skip to content
0

katanakit-js / useSessionExists

Function: useSessionExists() ​

ts
function useSessionExists(sessionId): Promise<boolean>;

Defined in: src/core/services/assistant.service.ts:298

Checks whether a conversation session exists.

Parameters ​

ParameterTypeDescription
sessionIdstringThe conversation session id.

Returns ​

Promise<boolean>

true when the session exists.

Example ​

ts
const exists = await useSessionExists(sessionId);

Released under the MIT License.