tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test-websocket.js (440B)


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