summaryrefslogtreecommitdiffstats
path: root/dom/websocket/tests/websocket_worker_https.html
blob: 0eb17af65be5c9e140115e4794f3662b11bdfb64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<script>
  var worker = new Worker("https://example.com/tests/dom/websocket/tests/websocket_https_worker.js");

  worker.onmessage = function(event) {
    parent.postMessage(event.data, "*");
  };

  worker.onerror = function(event) {
    parent.postMessage("error", "*");
  };

  worker.postMessage("start");
</script>