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 April 21, 2026