useEnsureRoom
Ensures that a room is provided, either via context or explicitly as a parameter. If no room is provided, an error is thrown.
Import
import { useEnsureRoom } from "@livekit/components-react";
Properties
room?
Room
Returns
Room;
Source
Ensures that a room is provided, either via context or explicitly as a parameter. If no room is provided, an error is thrown.
import { useEnsureRoom } from "@livekit/components-react";
Room
Room;