|
@ -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); |
|
|