You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
onmessage = () => {
|
|
var protocol = location.protocol.replace('http', 'ws');
|
|
var url = protocol + '//' + location.host + '/echo-with-no-extension';
|
|
var ws = new WebSocket(url);
|
|
|
|
ws.onopen = () => postMessage('PASS');
|
|
ws.onclose = () => postMessage('FAIL');
|
|
}
|