Skip to content

Welshman Docs / @welshman/app / RelayManagement

Class: RelayManagement ​

Defined in: app/src/plugins/relayManagement.ts:9

NIP-86 relay management, authenticated as the app's user. forUrl returns a ManagementApi client for a relay (app.use(RelayManagement).forUrl(url).deleteRole(id)).

Constructors ​

Constructor ​

new RelayManagement(app): RelayManagement

Defined in: app/src/plugins/relayManagement.ts:10

Parameters ​

app ​

IApp

Returns ​

RelayManagement

Properties ​

app ​

readonly app: IApp

Defined in: app/src/plugins/relayManagement.ts:10

Methods ​

forUrl() ​

forUrl(url): ManagementApi

Defined in: app/src/plugins/relayManagement.ts:13

Parameters ​

url ​

string

Returns ​

ManagementApi