Syntax
Description
This method adds an event listener that executes when a Server event of a particular type is fired. When an event is fired, the listener will be executed.
Event listeners should be used in accordance with the Server Events specification.
Parameters
Parameter | Description |
---|---|
eventName | A string representing the type of event after which listenerFunction will be executed. |
listenerFunction | A function which is executed when the eventName event is fired; this function may have as many parameters, as specified by the corresponding event. |
Example
See [Server 'objectSet' event].