summarylogtreecommitdiffstats
path: root/uifix.js
blob: a075014456116c54f949769f030a1d9ccf885e78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

var DEBUG_HOST = "127.0.0.1";
var DEBUG_PORT = 9999

$(function()
{
  $.getJSON(
    "http://" + DEBUG_HOST + ":" + DEBUG_PORT + "/json",
    function(data)
    {
      $.each(data, function(index, view)
      {
        var url = view["webSocketDebuggerUrl"];
        var socket = new WebSocket(url);
        socket.onopen = function() { socket.close(); }
      });
    });
});