import { Peer } from "https://deno.land/x/earthstar@v10.0.0-beta.6/src/peer/peer.ts";
Begin synchronising with a remote or local peer.
Parameters
target: IPeer | string
- A HTTP URL or
Peer
instance.
- Whether the connection should be kept open for newly written docs, or stop after an initial sync.
optional
formats: FormatsArg<F>- Optional. Which document formats to sync. Defaults to
es.5
.