import { HeritageServer } from "https://deno.land/x/earthstar_replica_server@4.0.0-beta.1/mod.ts";
A ready-made replica server populated with shares from a local list, able to synchronise with both classic (<v7) peers via HTTP as well as newer peers using websockets.
- It will look for the known shares list at
./known_shares.json
- Modern websocket sync endpoint is at
<hostname>/earthstar-api/v2
- Classic HTTP sync endpoint is at
<hostname>/earthstar-api/v1
Constructors
new
HeritageServer(opts: ReplicaServerOpts)Properties
private
server: ReplicaServer