summaryrefslogtreecommitdiff
path: root/deps/wse/priv/button_demo.html
blob: d397f830fb32aeade59049ec17e7d15e843ab69e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html>
<head>
<title>Button demo page</title>
<script src='ej.js'></script>
<script src='wse.js'></script>
<script>

window.onload = function() {
   if (Wse.open("ws://"+(location.hostname||"localhost")+":1234/websession")) {
      // Wse.enable_console_output(true);
      Wse.start('wse_button_demo', 'run', ["myid"]);
   }
   else
     alert("WebSockets not supported");
};

</script>
</head>
<body>
<div id="myid"></div>
</body>
</html>