Field Notes
    Preparing search index...

    Class FogSyncController

    Index
    • Capture a fog edit made while no SyncClient is active (managed-connection offline window). Records the edit in the ledger and pending state so it can be replayed when a client reconnects.

      Parameters

      • event: { kind: string; origin?: string; tiles?: readonly { x: number; y: number }[] }

      Returns void

    • Process an incoming fog-meta or fog-patch op from a remote peer or the hub.

      Parameters

      • from: string
      • op:
            | { kind: "fog-meta"; record: FogMetaRecord }
            | { generation: string; kind: "fog-patch"; tiles: FogTileRecord[] }

      Returns void

    • Merge fog data from an authoritative snapshot. Handles pending edits, rollback, and replay of unresolved local edits.

      Parameters

      • raw: unknown

      Returns void