Field Notes
    Preparing search index...

    Class RemoteFocusReceiver

    Applies remote focus requests addressed to this client's role: moves the camera and marks the target with one pulse.

    The pulse is DELEGATED to a private RemotePingOverlay rather than reimplemented. renderPingPulse draws a single frame from an elapsed time, so an animated pulse needs a rAF loop that re-requests renders, expires the pulse, and cancels on disposal — machinery that already exists and is tested there. maxPingsPerSender: 1 makes a rapid second focus REPLACE the older pulse instead of leaving two competing markers; different senders keep separate keys and coexist, which is correct when two DMs share a table.

    Index
    • Applies a presence payload from sender. Returns false for payloads that are not focus frames, or are addressed to a different role, so hosts can feed every presence frame through without disturbing other handlers.

      Parameters

      • from: string
      • data: unknown

      Returns boolean