Skip to content

UseSessionExists

katanakit-js / useSessionExists

function useSessionExists(sessionId): Promise<boolean>;

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

Checks whether a conversation session exists.

Parameter Type Description
sessionId string The conversation session id.

Promise<boolean>

true when the session exists.

const exists = await useSessionExists(sessionId);