I have a server that connects via tls and continuously outputs data in this format (when accessed through the terminal)
<edge event="add" from="125" to="130" timestamp="1372150050.47129" type="0" establishReasons="33" estalishedAndActive="true" delay="0.00916483299806714" jitter="0.000257230664525802" dropRate="1.27776449074903e-56" linkQuality="0" establishedFor="57146.99354947" establishRate="2.85065004752693">
<bandwidth rx="55.9164926573162" tx="57.7368275141321"/>
<sourceRedNets>
<net address="10.0.125.0/24"/>
</sourceRedNets>
<destRedNets>
<net address="10.0.130.0/24"/>
</destRedNets>
<peerPath>
<peer id="130"/>
<peer id="35"/>
<peer id="105"/>
<peer id="50"/>
<peer id="70"/>
</peerPath>
I want to access this stream and push parts of this data (like the "edge event='add' from=....") to my browser and use it in JavaScript. How can I do this? I'm not able to figure out a way. Thanks