Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/earthstar/mod.browser.ts>MultiformatReplica#close

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
method MultiformatReplica.prototype.close
Re-export
import { MultiformatReplica } from "https://deno.land/x/earthstar@v10.0.0/mod.browser.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>