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

    Interface UseReactionSyncOptions

    Options for the useReactionSync hook.

    interface UseReactionSyncOptions {
        cooldownMs?: number;
        effects?: ReactionEffect[];
        isOwner: boolean;
        localUserId: string;
        onError?: (error: Error) => void;
        onReactionTriggered?: (effectId: string, triggeredBy: string) => void;
        permission?: ReactionPermission;
    }
    Index

    Properties

    cooldownMs?: number

    Cooldown between triggers in ms (default: 4000)

    effects?: ReactionEffect[]

    Available effects catalog (default: DEFAULT_EFFECTS)

    isOwner: boolean

    Whether the local user is the room owner

    localUserId: string

    Local user identifier (e.g., email or userId)

    onError?: (error: Error) => void

    Called when an error occurs during reaction sending or processing

    onReactionTriggered?: (effectId: string, triggeredBy: string) => void

    Called when any participant triggers a reaction

    permission?: ReactionPermission

    Who can trigger reactions (default: 'owner-only')