A string that specifies the name of an event on a Session object to which you subscribe an event handler. See the reference entry for the progress.data.Session class for a list of available events.
event-handler
A reference to an event handler function that is called when the specified event fires.
scope
An optional object reference that defines the execution scope of the event handler function called when the event fires. If the scope property is omitted, the execution scope is the global object (usually the browser or device window).
The subscribe( ) method throws an error object if event-name does not identify an event supported by the Session object (the lookup is case insensitive), or if an argument is not of the correct type.