annel);
});
</code></pre>
<h4>onMessage</h4>
<p>Event fired when module receives a message on the subscribed channel.
The event parameter passed on the callback function has defined following properties:
- <strong>channel</strong> [string]: the channel name
- <strong>message</strong> [string]: the message</p>
<p>Example:</p>
<pre><code>ORTC.addEventListener('onMessage', function(e) {
    alert('(Channel: '+e.channel+') Message received: '+e.message);
});
</code></pre>
<h4>onPresence</h4>
<p>Event fired as a