Browse Source

Check for websockets (seems to work)

master
Joshua Moerman 12 years ago
parent
commit
a59f5c75cd
  1. 6
      index.html

6
index.html

@ -31,7 +31,11 @@
function init() {
document.getElementById("myName").innerHTML = myName;
testWebSocket();
if ("WebSocket" in window){
testWebSocket();
} else {
document.getElementById("status").innerHTML = 'No websockets :(';
}
}
function testWebSocket() {
websocket = new WebSocket(wsURI);