Skip to content

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

IApp.config


netContext

netContext: NetContext

Defined in: app/src/app.ts:45

Implementation of

IApp.netContext


pool

pool: Pool

Defined in: app/src/app.ts:46

Implementation of

IApp.pool


repository

repository: Repository

Defined in: app/src/app.ts:48

Implementation of

IApp.repository


tracker

tracker: Tracker

Defined in: app/src/app.ts:47

Implementation of

IApp.tracker


user?

optional user: User

Defined in: app/src/app.ts:43

Implementation of

IApp.user


wrapManager

wrapManager: WrapManager

Defined in: app/src/app.ts:49

Implementation of

IApp.wrapManager

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

IApp.onCleanup


use()

use<T>(Ctor): T

Defined in: app/src/app.ts:75

Type Parameters

T

T

Parameters

Ctor

Plugin<T>

Returns

T

Implementation of

IApp.use