Skip to main content

Properties

number
Current attention score (0–100). Read-only.
'active' | 'idle' | 'dropped' | 'stopped'
Current session status.
string
Unique session ID (e.g. sess_8xK2mP9q).

Methods

session.on(event, handler)

Subscribe to a session event. See Events for all event types.

session.stop()

Stop the session, flush the final score to the ingest layer, and remove all event listeners.

session.pause() / session.resume()

Temporarily suspend signal collection without ending the session.