Skip to main content
Module

x/earthstar/src/entries/npm.ts>SharedSettings#addServer

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

Add a server URL to be stored by settings.

Parameters

address: string

Returns

string[] | ValidationError

The list of servers after the addition, or a ValidationError if the string is not a valid URL.