Skip to main content
Adds an event listener for a specific event. See the Event Reference for all available events.

Signature

Parameters

Returns

this โ€” the client instance, allowing method chaining.

Example

Type-Safe Event Handling

More Information

Last modified on November 3, 2026