aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-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>');
};