|
|
@ -25,6 +25,7 @@ |
|
|
|
background-color: #0af; |
|
|
|
} |
|
|
|
</style> |
|
|
|
<script type="text/javascript" src="connection.js"></script> |
|
|
|
<script language="javascript" type="text/javascript"> |
|
|
|
var websocket; |
|
|
|
var the_screen; |
|
|
@ -34,7 +35,7 @@ |
|
|
|
testWebSocket(); |
|
|
|
} |
|
|
|
function testWebSocket() { |
|
|
|
websocket = new WebSocket("ws://127.0.0.1:7681", "observer"); |
|
|
|
websocket = new WebSocket(wsURI, "observer"); |
|
|
|
websocket.onopen = function (evt) { onOpen(evt) }; |
|
|
|
websocket.onclose = function (evt) { onClose(evt) }; |
|
|
|
websocket.onmessage = function (evt) { onMessage(evt) }; |
|
|
@ -77,7 +78,6 @@ |
|
|
|
window.addEventListener("load", init, false); |
|
|
|
</script> |
|
|
|
|
|
|
|
<p>Response of server: <span id="people"></span> |
|
|
|
<p>Status: <span id="status">unknown</span> |
|
|
|
|
|
|
|
<div id="screen"> |
|
|
|