summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/websocket_https.html
blob: 549147a33279a149d02feb4654600ba5bdc4b23e (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/workers/test/websocket_https_worker.js");

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

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

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