diff options
Diffstat (limited to 'examples/websocket')
-rw-r--r-- | examples/websocket/priv/html_ws_client.html | 4 |
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>'); }; |