mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Fix issue when modifying websocket example
Thanks ale.
This commit is contained in:
parent
7855f80e4b
commit
2e5eb16f3b
1 changed files with 4 additions and 0 deletions
|
@ -67,6 +67,10 @@
|
|||
showScreen('<span style="color: blue;">RESPONSE: ' + evt.data+ '</span>');
|
||||
};
|
||||
|
||||
function onError(evt) {
|
||||
showScreen('<span style="color: red;">ERROR: ' + evt.data+ '</span>');
|
||||
};
|
||||
|
||||
function showScreen(txt) {
|
||||
$('#output').prepend('<p>' + txt + '</p>');
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue