interface UseRemoteAwarenessProps<T> {
    getTime?: (() => number);
    handle: DocHandle<T>;
    localUserId?: string;
    offlineTimeout?: number;
}

Type Parameters

  • T

Properties

getTime?: (() => number)

Function to provide current epoch time

Type declaration

    • (): number
    • Returns number

handle: DocHandle<T>

The handle to receive ephemeral state on

localUserId?: string

Our user ID

offlineTimeout?: number

How long to wait (in ms) before marking a peer as offline