Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/earthstar/mod.browser.ts>Peer#sync

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
method Peer.prototype.sync
Re-export
import { Peer } from "https://deno.land/x/earthstar@v10.0.0/mod.browser.ts";

Begin synchronising with a remote or local peer.

Parameters

target: IPeer | string
  • A HTTP URL or Peer instance.
optional
continuous = [UNSUPPORTED]
  • Whether the connection should be kept open for new changes from the other peer, or stop after initial reconciliation. Defaults to false.
optional
formats: FormatsArg<F>
  • Optional. Which document formats to sync. Defaults to es.5.

Returns

Syncer<undefined, F>