Skip to main content
Module

x/earthstar/mod.ts>Peer#onReplicasChange

Storage for private, distributed, offline-first applications.
Latest
method Peer.prototype.onReplicasChange
Re-export
import { Peer } from "https://deno.land/x/earthstar@v10.2.2/mod.ts";

Fires a given callback whenever the Peer's store of replicas changes.

Parameters

callback: (map: Map<ShareAddress, Replica>) => void | Promise<void>