code | type | title | description |
---|---|---|---|
true |
page |
addListener |
Kuzzle:addListener |
Adds a listener to an event. When an event is fired, listeners are called in the order that they are added.
Arguments | Type | Description |
---|---|---|
event |
string | One of the event described in the Event Handling section of this documentation |
listener |
function | The function to call each time one of the registered event is fired |
Returns the Kuzzle
object to allow chaining.
<<< ./snippets/add-listener-1.java