Answer the question
In order to leave comments, you need to log in
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>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question