error);
    } else {
        alert('(Channel: '+e.channel+') Presence: '+e.result);
    }
});
</code></pre>
<h3>Methods</h3>
<h4>connect</h4>
<p>Connects the client using the supplied application key and authentication token.
Parameters:
- <strong>application_key</strong> [string]: Your ORTC application key.
- <strong>authentication_token</strong> [string]: - Your ORTC authentication token (this parameter is optional).</p>
<p>Example:</p>
<pre><code>ORTC.connect('yourApplicationKey');
or
ORTC.connect('yourA