summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/websocket_https_worker.js
blob: 2592ed6d0d110aeefbe41c7e71744185033634dc (plain)
1
2
3
4
5
6
7
8
9
onmessage = function() {
  var wsCreated = true;
  try {
    new WebSocket("ws://mochi.test:8888/tests/dom/base/test/file_websocket_hello");
  } catch(e) {
    wsCreated = false;
  }
  postMessage(wsCreated ? "created" : "not created");
};