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

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

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
class AttachmentTransfer
import { AttachmentTransfer } from "https://deno.land/x/earthstar@v10.0.0-alpha.4/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