import { PartnerWebClient } from "https://deno.land/x/earthstar@v10.0.1/src/entries/npm.ts";
A syncing partner created from an inbound HTTP connection (i.e. a web client).
Works everywhere, but is really meant for servers running on Deno and Node.
Type Parameters
IncomingTransferSourceType extends WebSocket
Properties
Methods
closeConnection(): Promise<void>
getDownload(_opts: GetTransferOpts): Promise<ReadableStream<Uint8Array> | NotSupportedError>
getEvents(): AsyncIterable<SyncerEvent>
handleTransferRequest(socket: IncomingTransferSourceType, kind: "upload" | "download"): Promise<ReadableStream<Uint8Array> | WritableStream<Uint8Array> | undefined>
handleUploadRequest(_opts: GetTransferOpts): Promise<WritableStream<Uint8Array> | NotSupportedError>
sendEvent(event: SyncerEvent): Promise<void>