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
netContext
netContext:
NetContext
Defined in: app.ts:53
Implementation of
pool
pool:
Pool
Defined in: app.ts:54
Implementation of
repository
repository:
Repository
Defined in: app.ts:55
Implementation of
user?
optionaluser?:User
Defined in: app.ts:51
Implementation of
wrapManager
wrapManager:
WrapManager
Defined in: app.ts:56
Implementation of
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
url
string
Returns
Promise<void>
Implementation of
onCleanup()
onCleanup(
unsubscriber):void
Defined in: app.ts:107
Parameters
unsubscriber
Returns
void
Implementation of
use()
use<
T>(Ctor):T
Defined in: app.ts:89
Type Parameters
T
T
Parameters
Ctor
Plugin<T>
Returns
T