aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-04-27 11:50:41 +0200
committerLoïc Hoguin <[email protected]>2014-04-27 11:50:41 +0200
commit1ad3aae4d5459ee991805d16a3837e1da2ba96ff (patch)
tree023c44cbd428d720a809dfdf3178ba46cea8e954 /examples
parentc966076bbeea5911843f188e418330f939566b20 (diff)
parentf9e76d7df2f919b7d7be3ffd33059d55c86439b0 (diff)
downloadcowboy-1ad3aae4d5459ee991805d16a3837e1da2ba96ff.tar.gz
cowboy-1ad3aae4d5459ee991805d16a3837e1da2ba96ff.tar.bz2
cowboy-1ad3aae4d5459ee991805d16a3837e1da2ba96ff.zip
Merge branch 'fix-host-websocket-example' of git://github.com/edgurgel/cowboy
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">