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