Skip to main content
Defined in: packages/http-framework/src/lib/ClientEvents.ts:73

Properties

autocompleteError

autocompleteError: [unknown, ClientEventAutocompleteContext]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:97

autocompleteFinish

autocompleteFinish: [ClientEventAutocompleteContext]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:98

autocompleteRun

autocompleteRun: [ClientEventAutocompleteContext]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:95

autocompleteSuccess

autocompleteSuccess: [ClientEventAutocompleteContext, unknown]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:96

commandError

commandError: [unknown, ClientEventCommandContext]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:93

commandFinish

commandFinish: [ClientEventCommandContext]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:94

commandMethodUnknown

commandMethodUnknown: [ClientEventCommandContext]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:90

commandNameMissing

commandNameMissing: [APIApplicationCommandAutocompleteInteraction, ServerResponse<IncomingMessage>]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:88

commandNameUnknown

commandNameUnknown: [APIApplicationCommandAutocompleteInteraction | APIApplicationCommandInteraction, ServerResponse<IncomingMessage>]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:89

commandRun

commandRun: [ClientEventCommandContext]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:91

commandSuccess

commandSuccess: [ClientEventCommandContext, unknown]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:92

error

error: [unknown]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:74

hmrError

hmrError: [unknown, string]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:141 Emitted when the Hot Module Reloader fails to load, reload, or unload the pieces of a file. The error is not rethrown: saving the file again retries the operation.

Since

3.3.0

hmrPieceReloaded

hmrPieceReloaded: [Piece<PieceOptions, keyof StoreRegistryEntries>, string]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:128 Emitted when the Hot Module Reloader reloads an already loaded piece after its file changed.

Since

3.3.0

hmrPiecesLoaded

hmrPiecesLoaded: [Piece<PieceOptions, keyof StoreRegistryEntries>[], string]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:122 Emitted when the Hot Module Reloader loads the pieces of a newly created file.

Since

3.3.0

hmrPieceUnloaded

hmrPieceUnloaded: [Piece<PieceOptions, keyof StoreRegistryEntries>, string]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:134 Emitted when the Hot Module Reloader unloads a piece after its file was deleted.

Since

3.3.0

hmrStart

hmrStart: [string[]]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:110 Emitted when the Hot Module Reloader starts watching, with the list of watched store paths.

Since

3.3.0

hmrStop

hmrStop: []
Defined in: packages/http-framework/src/lib/ClientEvents.ts:116 Emitted when the Hot Module Reloader stops watching and all of its watchers have been closed.

Since

3.3.0

interactionHandlerError

interactionHandlerError: [unknown, ClientEventInteractionHandlerContext]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:103

interactionHandlerFinish

interactionHandlerFinish: [ClientEventInteractionHandlerContext]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:104

interactionHandlerNameInvalid

interactionHandlerNameInvalid: [APIMessageComponentInteraction | APIModalSubmitInteraction, ServerResponse<IncomingMessage>]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:99

interactionHandlerNameUnknown

interactionHandlerNameUnknown: [APIMessageComponentInteraction | APIModalSubmitInteraction, ServerResponse<IncomingMessage>]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:100

interactionHandlerRun

interactionHandlerRun: [ClientEventInteractionHandlerContext]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:101

interactionHandlerSuccess

interactionHandlerSuccess: [ClientEventInteractionHandlerContext, unknown]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:102

pluginLoaded

pluginLoaded: [PluginHook, string]
Defined in: packages/http-framework/src/lib/ClientEvents.ts:87 Emitted after a plugin hook runs, providing the hook’s PluginHook and the plugin’s name (or undefined when the registering plugin did not provide one).

Remarks

The PreGenericsInitialization, PreInitialization, and PostInitialization hooks run synchronously inside the Client constructor, so their emissions fire before new Client() returns. A listener attached afterwards cannot observe them (not even one added by a subclass, whose constructor body only runs after super() has already executed those hooks), so only the PreLoad (during Client#load) and PostListen (during Client#listen) emissions are observable. To react to the constructor-phase hooks, use the plugin hooks themselves.