Field Notes
    Preparing search index...

    Interface LocalAwarenessOptions

    interface LocalAwarenessOptions {
        element?: HTMLElement;
        fields?: AwarenessFields;
        heartbeatMs?: number;
        identity: AwarenessIdentity;
        intervalMs?: number;
        onError?: (error: unknown) => void;
        selectionFilter?: (ids: readonly string[]) => readonly string[];
        send: (data: AwarenessPresence) => void;
    }
    Index
    element?: HTMLElement

    Pointer listener target override; default host.domLayer.parentElement.

    Default { cursor: true, selection: false, tool: true }.

    heartbeatMs?: number

    Full-state re-send while idle, measured from the last send. Default 15000; 0 disables.

    intervalMs?: number

    Minimum spacing between frames. Default 50 (the relay lane throttle).

    onError?: (error: unknown) => void
    selectionFilter?: (ids: readonly string[]) => readonly string[]

    Host projection applied to selected ids before they leave the client. Fails closed: if it throws or returns anything but an array of strings, frames carry NO selection (never the unfiltered ids) until it next succeeds, and the error goes to onError.

    send: (data: AwarenessPresence) => void