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