I have a personal finance application built with Qt that needs to integrate with a JavaScript push service for real-time currency updates. The service does not use \endf in the http requests, specifically for fetching currency tickers.
<script src="//js.pusher.com/2.2/pusher.min.js" type="text/javascript"></script>
<script type="text/javascript">
var pusher = new Pusher("cb65d0a7a72cd94adf1f");
var channel = pusher.subscribe("ticker.160");
channel.bind("message", function(data) {
//console.log(data);
var topbuy = data.trade.topbuy;
console.log("Price: ", topbuy.price,
"Quantity:", topbuy.quantity);
});
</script>
How can I translate this functionality to C++ so that my application can directly interact with the ticker service instead of relying on JavaScript?