Valora
API Reference@valora-ai/reactindexFunctions

useSession

function useSession(tokenSource): UseSessionReturn;

Defined in: packages/react/src/hooks/session/useSession.ts:26

Note. This feature is under active development and may change based on developer feedback and real-world usage. A Session represents a managed connection to a Room which can contain Agents.

Parameters

ParameterType
tokenSourceunknown

Returns

UseSessionReturn

Example

const session = useSession({ token: "local" });
return <span>{session.connectionState}</span>;

On this page

Valora is local-first

No API key, no server — everything in this doc runs on-device.

Star on GitHub