GitHub

Source

ConnectionState

The ConnectionState component displays the connection status of the room as strings ("connected" | "connecting" | "disconnected" | "reconnecting").

Import

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

Usage

<LiveKitRoom>
<ConnectionState />
</LiveKitRoom>

Properties

room?Room

(Optional) The room from which the connection status should be displayed.