import { PartnerWebServer } from "https://deno.land/x/earthstar@v10.0.1/src/entries/deno.ts";
A syncing partner to be used with servers reachable via the internet. Works everywhere.
Properties
private
socket: WebSocketMethods
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>