Module: siteKiosk.apps.current.events

A Module which provides the ability to send application wide events. This allows multiple web views of the same application to communicate with each other.

Methods

<static> publish(subject, parameterObject)

Publishes an object under a certain subject. Other componenets of this application can subscribe to those messages.
Parameters:
Name Type Description
subject string The key the subscriber will need to subscribe
parameterObject Object An object to publish

<static> subscribe(subject)

Subscribes to an application wide event channel, identified by the subject string.
Parameters:
Name Type Description
subject string The subject to subscribe to, identifies an event channel