7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8 <script type="text/javascript" src="xynt-streaming.js"></script>
9 <script type="text/javascript" src="commons.js"></script>
10 <script type="text/javascript" src="heartbit.js"></script>
12 <!-- <script type="text/javascript" src="myconsole.js"></script> -->
14 <script type="text/javascript"><!--
17 window.onload = function() {
18 var host = "ws://dodo.birds.van/brisk/xynt_test01.php?isstream=true&transp=websocket&f_test=1"; // SET THIS TO YOUR SERVER
23 socket = new WebSocket(host);
24 console.log('WebSocket - status ' + socket.readyState);
26 socket.onopen = function(msg)
28 if(this.readyState == 1)
30 console.log("We are now connected to websocket server. readyState = " + this.readyState);
34 //Message received from websocket server
35 socket.onmessage = function(msg)
37 console.log(" [ + ] Received: " + msg.data);
41 socket.onclose = function(msg)
43 console.log("Disconnected - status " + this.readyState);
46 socket.onerror = function()
48 console.log("Some error");
54 console.log('Some exception : ' + ex);