Source code
Revision control
Copy as Markdown
Other Tools
onmessage = function () {
var wsCreated = true;
try {
new WebSocket(
);
} catch (e) {
wsCreated = false;
}
postMessage(wsCreated ? "created" : "not created");
};