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