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

    Interface UsePeerPresenceOptions

    interface UsePeerPresenceOptions {
        color: string;
        enabled?: boolean;
        fileId: string;
        label: string;
        localUserId: string;
        status: PresenceStatus;
        tool: WhiteboardTool | null;
    }
    Index

    Properties

    color: string

    Stable colour for the local user (passed in so it matches what peers see).

    enabled?: boolean
    fileId: string
    label: string

    Display name for the local user.

    localUserId: string

    Current local status — flipped to 'drawing' / 'idle' / 'away' as the user works.

    tool: WhiteboardTool | null

    Local current tool (sent so peers can label "Alice is using the pen").