Skip to main content
Module

x/earthstar/src/syncer/attachment_transfer.ts>AttachmentTransfer

Storage for private, distributed, offline-first applications.
Go to Latest
class AttachmentTransfer
import { AttachmentTransfer } from "https://deno.land/x/earthstar@v10.2.2/src/syncer/attachment_transfer.ts";

Constructors

new
AttachmentTransfer(unnamed 0: AttachmentTransferOpts<F>)

Properties

private
abortCb: () => void
private
multiDeferred: MultiDeferred
private
sourceDoc: DocBase<string>
private
transferOp
readonly
doc: DocBase<string>
expectedSize: number
hash: string
kind: "download" | "upload"
loaded: number
requester: "us" | "them"

Methods

private
updateLoaded(toAdd: number)
onProgress(callback: (event: AttachmentTransferProgressEvent) => void): () => void