Welshman Docs / @welshman/app / BlossomServerLists
Class: BlossomServerLists
Defined in: app/src/plugins/blossomServerLists.ts:14
Blossom server lists (kind 10063), keyed by pubkey. Loaded via the outbox model (the author's write relays), so it depends on the relay-list collection.
Extends
Constructors
Constructor
new BlossomServerLists(
app):BlossomServerLists
Defined in: app/src/plugins/blossomServerLists.ts:15
Parameters
app
Returns
BlossomServerLists
Overrides
Properties
all
all:
Projection<BlossomServerListReader[]>
Defined in: app/src/plugins/base.ts:208
Inherited from
app
protectedreadonlyapp:IApp
Defined in: app/src/plugins/base.ts:216
Inherited from
forceLoad()
forceLoad: (
key, ...args) =>Promise<Maybe<BlossomServerListReader>>
Defined in: app/src/plugins/base.ts:211
Parameters
key
string
args
...any[]
Returns
Promise<Maybe<BlossomServerListReader>>
Inherited from
index
index:
Projection<ItemsByKey<BlossomServerListReader>>
Defined in: app/src/plugins/base.ts:207
Inherited from
load()
load: (
key, ...args) =>Promise<Maybe<BlossomServerListReader>>
Defined in: app/src/plugins/base.ts:210
Parameters
key
string
args
...any[]
Returns
Promise<Maybe<BlossomServerListReader>>
Inherited from
one()
one: (
key?, ...args) =>Readable<Maybe<BlossomServerListReader>>
Defined in: app/src/plugins/base.ts:209
Parameters
key?
string
args?
...any[]
Returns
Readable<Maybe<BlossomServerListReader>>
Inherited from
Methods
addUrl()
addUrl(
url):Promise<Command>
Defined in: app/src/plugins/blossomServerLists.ts:38
Parameters
url
string
Returns
Promise<Command>
fetch()
fetch(
pubkey,relayHints):Promise<undefined|TrustedEvent>
Defined in: app/src/plugins/blossomServerLists.ts:23
Parameters
pubkey
string
relayHints
string[] = []
Returns
Promise<undefined | TrustedEvent>
Overrides
get()
get(
key):undefined|BlossomServerListReader
Defined in: app/src/plugins/base.ts:237
Parameters
key
string
Returns
undefined | BlossomServerListReader
Inherited from
project()
project<
U>(key,read):Projection<U>
Defined in: app/src/plugins/base.ts:239
Type Parameters
U
U
Parameters
key
string
read
(item) => U
Returns
Projection<U>
Inherited from
removeUrl()
removeUrl(
url):Promise<Command>
Defined in: app/src/plugins/blossomServerLists.ts:40
Parameters
url
string
Returns
Promise<Command>
setUrls()
setUrls(
urls):Promise<Command>
Defined in: app/src/plugins/blossomServerLists.ts:42
Parameters
urls
string[]
Returns
Promise<Command>
update()
update(
fn):Promise<Command>
Defined in: app/src/plugins/blossomServerLists.ts:29
Parameters
fn
(writer) => void
Returns
Promise<Command>
urls()
urls(
pubkey):Projection<string[]>
Defined in: app/src/plugins/blossomServerLists.ts:27
Parameters
pubkey
string
Returns
Projection<string[]>