Type Alias EventBusHandler<T>

EventBusHandler: (event: T, instance: ChatInstance) => unknown

The type of handler for event bus events. This function may return a Promise in which case, the bus will await the result and the loop will block until the Promise is resolved.

Type Parameters

Type declaration

MMNEPVFCICPMFPCPTTAAATR