Skip to main content
Module

x/earthstar/mod.ts>ExtensionKnownShares

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
class ExtensionKnownShares
implements IServerExtension
import { ExtensionKnownShares } from "https://deno.land/x/earthstar@v10.0.0-beta.8/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) => Replica
private
peer: Peer | null