(add-listener client event-type handler)Adds an event listener to the client's configuration.
Example: (add-listener client :request my-handler)
Adds an event listener to the client's configuration.
Example:
(add-listener client :request my-handler)(build-event-data base-event additional-event kebabify-keys?)Builds the common event data structure. Optionally transforms keys to kebab-case based on the kebabify-keys? flag.
Builds the common event data structure. Optionally transforms keys to kebab-case based on the kebabify-keys? flag.
(emit-event listeners event-type base-data additional-data kebabify-keys?)Emits an event to all registered listeners of the specified type. Optionally transforms keys to kebab-case based on the kebabify-keys? flag.
Emits an event to all registered listeners of the specified type. Optionally transforms keys to kebab-case based on the kebabify-keys? flag.
(remove-listener client event-type handler)Removes an event listener from the client's configuration.
Removes an event listener from the client's configuration.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |