0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Merge branch 'fix-host-websocket-example' of git://github.com/edgurgel/cowboy

This commit is contained in:
Loïc Hoguin 2014-04-27 11:50:41 +02:00
commit 1ad3aae4d5

View file

@ -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">