Skip to main content
Module

x/earthstar_replica_server/deps.ts>Earthstar.SyncAgentOpts

An always-online Earthstar peer for your shares.
Latest
type alias Earthstar.SyncAgentOpts
import { type Earthstar } from "https://deno.land/x/earthstar_replica_server@4.0.0-beta.1/deps.ts";
const { SyncAgentOpts } = Earthstar;

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; }