You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.
import { IReplicaServerExtension } from "./extensions/extension.ts";
/** The core replica server logic. Combine this with a HTTP framework to create a fully-fledged replica server. */
export class ReplicaServerCore {
private extensions: IReplicaServerExtension[];
private peer: Earthstar.Peer;
private isReady: Promise<void>;
/**
* Create a new replica server with an array of extensions.
* @param extensions - The extensions used by the replica server. Extensions will be registered in the order you provide them in, as one extension may depend on the actions of another. For example, the `ExtensionServeContent` may rely on a replica created by `ExtensionKnownShares`.