aboutsummaryrefslogtreecommitdiffstats
path: root/examples/websocket
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-08-27 19:27:29 +0200
committerLoïc Hoguin <[email protected]>2013-08-27 19:27:29 +0200
commit2e5eb16f3b827870beb45d2538a0cddc73251a51 (patch)
treeb947a4a99c87387561a28e37cda8f5fd294c841f /examples/websocket
parent7855f80e4b6b1cfad87675453497e58bd91a9c67 (diff)
downloadcowboy-2e5eb16f3b827870beb45d2538a0cddc73251a51.tar.gz
cowboy-2e5eb16f3b827870beb45d2538a0cddc73251a51.tar.bz2
cowboy-2e5eb16f3b827870beb45d2538a0cddc73251a51.zip
Fix issue when modifying websocket example
Thanks ale.
Diffstat (limited to 'examples/websocket')
-rw-r--r--examples/websocket/priv/html_ws_client.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/websocket/priv/html_ws_client.html b/examples/websocket/priv/html_ws_client.html
index 030a178..5bc7f15 100644
--- a/examples/websocket/priv/html_ws_client.html
+++ b/examples/websocket/priv/html_ws_client.html
@@ -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>');
};