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:
commit
1ad3aae4d5
1 changed files with 2 additions and 1 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue