Skip to main content
Module

x/earthstar_replica_server/mod.ts>ExtensionKnownShares

An always-online Earthstar peer for your shares.
Latest
class ExtensionKnownShares
Re-export
import { ExtensionKnownShares } from "https://deno.land/x/earthstar_replica_server@4.0.0-beta.1/mod.ts";

An extension for populating a replica server with known shares. Use this to specify which shares you'd like your replica server to sync with others.

You most likely want to pass this as the first extension to your replica server.

Constructors

new
ExtensionKnownShares(opts: ExtensionKnownSharesOpts)

Properties

private
knownSharesPath: string
private
onCreateReplica: (shareAddress: string) => Earthstar.Replica
private
peer: Earthstar.Peer | null

Methods

register(peer: Earthstar.Peer)