Browse Source

Check for websockets (seems to work)

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

4
index.html

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