0
Fork 0
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:
Loïc Hoguin 2013-08-27 19:27:29 +02:00
parent 7855f80e4b
commit 2e5eb16f3b

View file

@ -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>');
};