Skip to content

HookableEvent

Defined in: src/hooks/events.ts:98

Base class for events that can be subscribed to via the hook system. Only events extending this class are dispatched to HookRegistry callbacks. All current events extend this class. StreamEvent exists as the base for potential future stream-only events that should not be hookable.

new HookableEvent(data?): HookableEvent;

Defined in: src/hooks/events.ts:102

ParameterType
data?HookableEventData

HookableEvent

StreamEvent.constructor

readonly invocationContext?: InvocationContext;

Defined in: src/hooks/events.ts:100

The request this event belongs to (undefined outside one); pass it to InvokeOptions.invocationContext to join it.