GitHub

Source

useRoomContext

Ensures that a room is provided via context. If no room is provided, an error is thrown.

Import

import { useRoomContext } from "@livekit/components-react";

Returns

Room;