From 2e5eb16f3b827870beb45d2538a0cddc73251a51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 27 Aug 2013 19:27:29 +0200 Subject: Fix issue when modifying websocket example Thanks ale. --- examples/websocket/priv/html_ws_client.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/websocket') 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('RESPONSE: ' + evt.data+ ''); }; + function onError(evt) { + showScreen('ERROR: ' + evt.data+ ''); + }; + function showScreen(txt) { $('#output').prepend('

' + txt + '

'); }; -- cgit v1.2.3