browser/devtools/webconsole/test/test-bug-603750-websocket.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /*
     2  * Any copyright is dedicated to the Public Domain.
     3  * http://creativecommons.org/publicdomain/zero/1.0/
     4  */
     6 window.addEventListener("load", function () {
     7   var ws1 = new WebSocket("ws://0.0.0.0:81");
     8   ws1.onopen = function() {
     9     ws1.send("test 1");
    10     ws1.close();
    11   };
    13   var ws2 = new window.frames[0].WebSocket("ws://0.0.0.0:82");
    14   ws2.onopen = function() {
    15     ws2.send("test 2");
    16     ws2.close();
    17   };
    18 }, false);

mercurial