Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/src/syncer/syncer_types.ts>SyncAgentOpts

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
type alias SyncAgentOpts
import { type SyncAgentOpts } from "https://deno.land/x/earthstar@v10.0.0-alpha.4/src/syncer/syncer_types.ts";

Options used for initialisng a SyncAgent.

  • replica: The replica to represent.
  • mode: Whether to sync only existing docs or keep the connection open for new docs too.
definition: { replica: Replica; formats?: FormatsArg<F>; transferManager: TransferManager<F, unknown>; syncerManager: SyncerManager; syncAppetite: SyncAppetite; initiateMessaging: boolean; payloadThreshold: number; rangeDivision: number; }