useSessionContext
Note
This feature is under active development and may change based on developer feedback and real-world usage.
Ensures that a session is provided via context. If no session is provided, an error is thrown.
Import
import { useSessionContext } from "@livekit/components-react";
Returns
UseSessionReturn;