Welshman Docs / @welshman/app / App
Class: App
Defined in: app/src/app.ts:42
The core of an application instance. Owns the primitives a single identity needs (so data never bleeds across sessions) — a private repository, a socket pool, a tracker, a wrap manager — and a use registry that resolves data modules (including net/store helpers) on demand.
Implements
Constructors
Constructor
new App(
options):App
Defined in: app/src/app.ts:54
Parameters
options
AppOptions = {}
Returns
App
Properties
config
config:
AppConfig
Defined in: app/src/app.ts:44
Implementation of
netContext
netContext:
NetContext
Defined in: app/src/app.ts:45
Implementation of
pool
pool:
Pool
Defined in: app/src/app.ts:46
Implementation of
repository
repository:
Repository
Defined in: app/src/app.ts:48
Implementation of
tracker
tracker:
Tracker
Defined in: app/src/app.ts:47
Implementation of
user?
optionaluser:User
Defined in: app/src/app.ts:43
Implementation of
wrapManager
wrapManager:
WrapManager
Defined in: app/src/app.ts:49
Implementation of
Methods
cleanup()
cleanup():
void
Defined in: app/src/app.ts:89
Returns
void
onCleanup()
onCleanup(
unsubscriber):void
Defined in: app/src/app.ts:85
Parameters
unsubscriber
Unsubscriber
Returns
void
Implementation of
use()
use<
T>(Ctor):T
Defined in: app/src/app.ts:75
Type Parameters
T
T
Parameters
Ctor
Plugin<T>
Returns
T