interface UseLocalAwarenessProps {
    handle: DocHandle<unknown>;
    heartbeatTime?: number;
    initialState: any;
    userId: string;
}

Properties

handle: DocHandle<unknown>

The document handle to send ephemeral state on

heartbeatTime?: number

How frequently to send heartbeats

initialState: any

The initial state object/primitive we should advertise

userId: string

Our user ID *