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#onSyncersChange

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

Fires a given callback whenever a new syncer is added to the peer.

Parameters

callback: (map: Map<string, { description: string; syncer: Syncer<unknown, unknown>; }>) => void | Promise<void>

Returns

() => void