Creates a new Evento instance.
The default encoder/decoder for requests and responses
Returns copies of the current handler lists.
An object containing arrays of regular actions and wildcard handlers
Registers handlers at the end of their respective lists.
One or more handlers or arrays of handlers
Array of unregister functions, one for each handler
Registers handlers at the beginning of their respective lists.
One or more handlers or arrays of handlers
Array of unregister functions, one for each handler
Registers handlers with specific operations. If a handler with the same hash already exists, returns its unregister function without adding a duplicate.
Handler operations specifying where to place each handler
Array of unregister functions, one for each handler
Triggers event processing through registered handlers.
Process flow:
The input request type
The validated request type
The response type
The trigger context parameters
A Result containing an array of handler hashes that processed the event
Event handling system with validation and encoding support. Manages regular and wildcard handlers with customizable execution order.
Regular handlers are processed first. If any regular handler matches and processes the event, wildcard handlers are skipped. Wildcard handlers only run if no regular handlers matched.
Example