P
P
pr0tect0r2012-05-31 09:00:08
PHP
pr0tect0r, 2012-05-31 09:00:08

Does the client only subscribe to one DKlab_RealPlexor channel?

On the server we have dklab_realplexor, out of the box. Accessing it via nginx.

On the client side, we have a simple code:

<html><br>
<head><br>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script><br>
<script type="text/javascript" src="http://rpx.24ffx.ru/?identifier=SCRIPT&<?=time()?>"></script><br>
</head><br>
<body><br>
<script type="text/javascript"><br>
                                <!--<br>
                                        var comet = new Dklab_Realplexor('http://rpx.24ffx.ru/', 'ticks_');<br>
                <br>
                                        comet.subscribe("EURUSD_m_BID", function (data, id){<br>
                                                $('#EURUSD_m_BID').html(data);<br>
                                        });<br>
                                        comet.subscribe("EURUSD_m_ASK", function (msg, id){<br>
                                                $('#EURUSD_m_ASK').html(msg);<br>
                                        });<br>
                                        comet.execute();<br>
                                //--><br>
</script><br>
                        </script><br>
<br>
                        <div id="EURUSD_m_BID">1.00000</div><br>
                        <div id="EURUSD_m_ASK">1.00000</div><br>
<br>
</body><br>
</html><br>


Only the second channel is updated. The first channel does not even have requests (judging by FB and IR).
Moreover, the channels work separately - if you stupidly remove the second channel - the first one starts to receive the message.
In realplexor logs - on the first Wait channel.
If you print cwdOnline(), it shows both channels online.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question