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