Skip to main content
Module

x/earthstar/src/entries/npm.ts>ExtensionKnownShares

Storage for private, distributed, offline-first applications.
Go to Latest
class ExtensionKnownShares
implements IServerExtension
import { ExtensionKnownShares } from "https://deno.land/x/earthstar@v10.0.2/src/entries/npm.ts";

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

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

Constructors

new
ExtensionKnownShares(opts: ExtensionKnownSharesOpts)

Properties

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