Hiyve Components - v1.0.0
    Preparing search index...

    Interface ClientState

    Combined client state containing all state slices.

    This interface aggregates all state slices into a single object. It's primarily used internally by the HiyveProvider to build the context value. For most use cases, prefer using the specific hooks (useConnection, useRoom, etc.) to access only the state you need.

    Accessing full state (advanced usage):

    import { useConnection, useRoom, useParticipants, useRecording } from '@hiyve/react';

    function DebugPanel() {
    const connection = useConnection();
    const room = useRoom();
    const { participants } = useParticipants();
    const recording = useRecording();

    return (
    <pre>
    {JSON.stringify({
    connected: connection.isConnected,
    inRoom: room.isInRoom,
    participants: participants.size,
    recording: recording.isRecording,
    }, null, 2)}
    </pre>
    );
    }
    • ClientContextValue for the full context including actions
    • useConnection, useRoom, useParticipants from @hiyve/react for accessing specific slices

    Hierarchy (View Summary)

    Index

    Properties

    audioProcessing: AudioProcessingState

    Audio processing state (feedback, validation, gainNode)

    chat: ChatState

    Chat state (messages, unreadCount)

    client: Client | null

    The Hiyve Client instance, null if not connected

    connection: ConnectionState

    Connection state (isConnected, isConnecting, error)

    handRaise: HandRaiseState

    Hand raise state (raised hands map)

    layout: LayoutState

    Layout state (dominant speaker)

    localMedia: LocalMediaState

    Local media state (mute states, screen sharing)

    participants: ParticipantsState

    Participants state (participants map, localUserId)

    recording: RecordingState

    Recording state (isRecording, recordingId, startTime)

    room: RoomState

    Room state (room info, isOwner, isInRoom)

    storedRooms: StoredRoomsState

    Stored rooms state (persistent room management)

    streaming: StreamingState

    Streaming state (isStreaming, streamingId, featuredUser)

    transcription: TranscriptionState

    Transcription state (isTranscribing, transcriptions)

    waitForHost: WaitForHostState

    Wait for host state (isWaiting, roomName, timeout)

    waitingRoom: WaitingRoomState

    Waiting room state (waitingUsers)