Hiyve Components - v1.0.0
    Preparing search index...
    interface UsePollsOptions {
        isOwner: boolean;
        localUserId: string;
        localUserName?: string;
        onSendDataMessage: (data: Record<string, unknown>) => void;
    }
    Index

    Properties

    isOwner: boolean

    Whether the local user is the room owner.

    localUserId: string

    The local user's ID. Used to track votes and poll ownership.

    localUserName?: string

    The local user's display name.

    onSendDataMessage: (data: Record<string, unknown>) => void

    Callback to broadcast a data message to all participants.