Browse Source

Fix issue when modifying websocket example

Thanks ale.
Loïc Hoguin 12 years ago
parent
commit
2e5eb16f3b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      examples/websocket/priv/html_ws_client.html

+ 4 - 0
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>');
       };