diff options
author | Loïc Hoguin <[email protected]> | 2013-08-27 19:27:29 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-08-27 19:27:29 +0200 |
commit | 2e5eb16f3b827870beb45d2538a0cddc73251a51 (patch) | |
tree | b947a4a99c87387561a28e37cda8f5fd294c841f /examples/websocket | |
parent | 7855f80e4b6b1cfad87675453497e58bd91a9c67 (diff) | |
download | cowboy-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.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>'); }; |