aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/websocket/priv/index.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/websocket/priv/index.html b/examples/websocket/priv/index.html
index 5bc7f15..56f36b2 100644
--- a/examples/websocket/priv/index.html
+++ b/examples/websocket/priv/index.html
@@ -9,6 +9,7 @@
$(document).ready(init);
function init() {
+ $('#server').val("ws://" + window.location.host + "/websocket");
if(!("WebSocket" in window)){
$('#status').append('<p><span style="color: red;">websockets are not supported </span></p>');
$("#navigation").hide();
@@ -92,7 +93,7 @@
<div id="navigation">
<p id="connecting">
- <input type='text' id="server" value="ws://localhost:8080/websocket"></input>
+ <input type='text' id="server" value=""></input>
<button type="button" onclick="toggle_connection()">connection</button>
</p>
<div id="connected">