import { type Earthstar } from "https://deno.land/x/earthstar_replica_server@4.0.0-beta.1/deps.ts";
const { ISyncPartner } = Earthstar;
Provides a syncer with the means to connect the peer being synced with (the partner).
Properties
syncAppetite: SyncAppetite
Methods
getDownload(opts: GetTransferOpts): Promise<ReadableStream<Uint8Array> | undefined | NotSupportedError>
Attempt to download an attachment directly from the partner.
handleUploadRequest(opts: GetTransferOpts): Promise<WritableStream<Uint8Array> | NotSupportedError>
Handles (usually in-band) request from the other peer to upload an attachment.
handleTransferRequest(source: IncomingAttachmentSourceType, kind: "upload" | "download"): Promise<>
Handles an out-of-band request from the other peer to start a transfer.