tenfourfox/dom/workers/test/websocket_https_worker.js
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

10 lines
240 B
JavaScript

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");
};