import { PartnerLocal } from "https://deno.land/x/earthstar@v10.0.0-alpha.2/mod.ts";
A syncing partner to be used with local instances of IPeer
.
Works everywhere.
Constructors
Properties
private
incomingEventBus: BlockingBus<SyncerEvent>private
outgoingEventBus: BlockingBus<SyncerEvent>private
partnerPeer: IPeerpartnerSyncer: Syncer<IncomingTransferSourceType, FormatsType>
readable: ReadableStream<SyncerEvent>
writable: WritableStream<SyncerEvent>
Methods
getDownload(opts: GetTransferOpts): Promise<ReadableStream<Uint8Array> | undefined>
handleTransferRequest(_source: IncomingTransferSourceType, _kind: "upload" | "download"): Promise<ReadableStream<Uint8Array> | WritableStream<Uint8Array> | undefined>
handleUploadRequest(_opts: GetTransferOpts): Promise<WritableStream<Uint8Array> | undefined>