For the complete documentation index, see llms.txt. This page is also available as Markdown.

emitSessionId

Emits the sessionId when it is generated.

Details

Notifies the session identifier as soon as it is created.

Event: emitSessionId

Type: FacephiSdkProviderCustomEvent<string> | CustomEvent<string>

Syntax

provider.addEventListener('emitSessionId', onEmitSessionId);

Received object

detail: string

Description

Allows you to associate the current SDK session with your system.


Example

<facephi-sdk-provider
    apikey={process.env.FACEPHI_SDK_APIKEY}
    onEmitSessionId={onEmitSessionId}
/>

Last updated