Server.on

Syntax

Server.on( eventName, listenerFunction )
Server.on.eventName( listenerFunction )

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].

See also

Server, Server Events, Form, FormEvent

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.