Skip to content

Welshman Docs / @welshman/app / App

Class: App ​

Defined in: app.ts:50

One identity's repository, socket pool and wrap manager, with a use registry of plugins.

Implements ​

Constructors ​

Constructor ​

new App(options?): App

Defined in: app.ts:61

Parameters ​

options? ​

AppOptions = {}

Returns ​

App

Properties ​

config ​

config: AppConfig

Defined in: app.ts:52

Implementation of ​

IApp.config


netContext ​

netContext: NetContext

Defined in: app.ts:53

Implementation of ​

IApp.netContext


pool ​

pool: Pool

Defined in: app.ts:54

Implementation of ​

IApp.pool


repository ​

repository: Repository

Defined in: app.ts:55

Implementation of ​

IApp.repository


user? ​

optional user?: User

Defined in: app.ts:51

Implementation of ​

IApp.user


wrapManager ​

wrapManager: WrapManager

Defined in: app.ts:56

Implementation of ​

IApp.wrapManager

Methods ​

cleanup() ​

cleanup(): void

Defined in: app.ts:111

Returns ​

void


ingestEvent() ​

ingestEvent(event, url): Promise<void>

Defined in: app.ts:100

Stores and tracks a relay's event unless it's a DVM or ephemeral kind, logging any failure.

Parameters ​

event ​

TrustedEvent

url ​

string

Returns ​

Promise<void>

Implementation of ​

IApp.ingestEvent


onCleanup() ​

onCleanup(unsubscriber): void

Defined in: app.ts:107

Parameters ​

unsubscriber ​

Unsubscriber

Returns ​

void

Implementation of ​

IApp.onCleanup


use() ​

use<T>(Ctor): T

Defined in: app.ts:89

Type Parameters ​

T ​

T

Parameters ​

Ctor ​

Plugin<T>

Returns ​

T

Implementation of ​

IApp.use