Wiki
mmt-correlator / api / EventManager
EventManager
Format: MMT.EventManager
Description: Event manager
Kind: static class of MMT
publish
Format: eventManager.publish(channel, msg)
Description: Publish a message on a channel
Kind: instance method of EventManager
Parameters:
| Param | Type |
|---|---|
| channel | string |
| msg | any |
subscribe
Format: eventManager.subscribe(channel, callback, userData)
Description: Subscribe a channel
Kind: instance method of EventManager
Parameters:
| Param | Type | Description |
|---|---|---|
| channel | string |
|
| callback | a function being called when someone publishes a message on the channel. The first parameter of callback is the received message, the second one is userData |
|
| userData | any |
this is passed to callback as the second parameter. |
| documentation generated on Thu, 18 Jun 2015 13:06:42 GMT |
Updated