import { PartnerLocal } from "https://deno.land/x/earthstar@v10.0.0-alpha.4/src/syncer/partner_local.ts";
A syncing partner to be used with local instances of IPeer
.
Works everywhere.
Constructors
Properties
private
incomingQueue: AsyncQueue<SyncerEvent>private
outgoingQueue: AsyncQueue<SyncerEvent>private
partnerPeer: IPeerpartnerSyncer: Syncer<IncomingTransferSourceType, FormatsType>
syncAppetite: SyncAppetite
Methods
closeConnection(): Promise<void>
getDownload(opts: GetTransferOpts): Promise<ReadableStream<Uint8Array> | undefined>
getEvents(): AsyncIterable<SyncerEvent>
handleTransferRequest(_source: IncomingTransferSourceType, _kind: "upload" | "download"): Promise<>
handleUploadRequest(_opts: GetTransferOpts): Promise<WritableStream<Uint8Array> | NotSupportedError>
sendEvent(event: SyncerEvent): Promise<void>