Skip to main content
Module

x/earthstar/mod.ts>Replica#close

A specification and Javascript library for building online tools you can truly call your own.
Go to Latest
method Replica.prototype.close
import { Replica } from "https://deno.land/x/earthstar@v9.3.3/mod.ts";

Closes the replica, preventing new documents from being ingested or events being emitted. Any methods called after closing will return ReplicaIsClosedError.

Parameters

erase: boolean
  • Erase the contents of the replica. Defaults to false.

Returns

Promise<void>