<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://comet-server.com/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://comet-server.com/wiki/feed.php">
        <title>CppComet en:comet:faq</title>
        <description></description>
        <link>http://comet-server.com/wiki/</link>
        <image rdf:resource="http://comet-server.com/wiki/lib/tpl/writr/images/favicon.ico" />
       <dc:date>2026-04-21T22:59:18+03:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://comet-server.com/wiki/doku.php/en:comet:faq:js-api-subscription?rev=1576624131&amp;do=diff"/>
                <rdf:li rdf:resource="http://comet-server.com/wiki/doku.php/en:comet:faq:realtime-users-list?rev=1576624131&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://comet-server.com/wiki/lib/tpl/writr/images/favicon.ico">
        <title>CppComet</title>
        <link>http://comet-server.com/wiki/</link>
        <url>http://comet-server.com/wiki/lib/tpl/writr/images/favicon.ico</url>
    </image>
    <item rdf:about="http://comet-server.com/wiki/doku.php/en:comet:faq:js-api-subscription?rev=1576624131&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-12-18T02:08:51+03:00</dc:date>
        <title>How to take a message out of the channel in JavaScript?</title>
        <link>http://comet-server.com/wiki/doku.php/en:comet:faq:js-api-subscription?rev=1576624131&amp;do=diff</link>
        <description>How to take a message out of the channel in JavaScript?

 
&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;!-- Add libs --&gt;
    &lt;meta charset=utf-8&gt;
    &lt;script src=&quot;//comet-server.com/CometServerApi.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    
    &lt;input id=&quot;pipeName&quot; type=&quot;text&quot; placeholder=&quot;Custom channel name&quot; &gt;
    &lt;input type=&quot;button&quot; value=&quot;Subscribe&quot; onclick=&quot;subscription();&quot; &gt;
    &lt;input type=&quot;button&quot; value=&quot;Clear message l…</description>
    </item>
    <item rdf:about="http://comet-server.com/wiki/doku.php/en:comet:faq:realtime-users-list?rev=1576624131&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-12-18T02:08:51+03:00</dc:date>
        <title>Subscription to update the list of users online</title>
        <link>http://comet-server.com/wiki/doku.php/en:comet:faq:realtime-users-list?rev=1576624131&amp;do=diff</link>
        <description>Subscription to update the list of users online


CometServer().subscription(&quot;track_online.subscription&quot;, function(msg)
{
    // Processing of the event that someone went to the site and subscribed to the channel track_online
});	
CometServer().subscription(&quot;track_online.unsubscription&quot;, function(msg)
{
    // Handling an event that someone left the site and / or unsubscribed from the track_online channel
});</description>
    </item>
</rdf:RDF>
