error hunting£
authorJack Allnutt <m2ys4u@Gmail.com>
Sun, 11 Dec 2011 15:29:22 +0000 (15:29 +0000)
committerJack Allnutt <m2ys4u@Gmail.com>
Sun, 11 Dec 2011 15:29:22 +0000 (15:29 +0000)
client/js/front.events.js
client/js/gateway.js
server/app.js

index 05bca870212e2736462c20a1e49de14602cbd265..a4b67121f918a8636cae995d5fc62e52fba37ae5 100644 (file)
@@ -595,7 +595,7 @@ kiwi.front.events = {
             break;\r
         default:\r
             // We don't know what data contains, so don't do anything with it.\r
-            //kiwi.front.tabviews.server.addMsg(null, ' ', '=== ' + data, 'status');\r
+            console.log(e, data);\r
         }\r
     },\r
 \r
index 37fec1ae2a92106900fe4e94dc1c2982cb400d4d..e7a9a51026837f4804a2f3c9ccf08af3049bca5a 100644 (file)
@@ -119,6 +119,7 @@ kiwi.gateway = {
             kiwi.gateway.socket.on('reconnect_failed', function () {
                 console.log("kiwi.gateway.socket.on('reconnect_failed')");
             });
+            kiwi.gateway.socket.on('error', console.log);
         }
     },
 
index 36d221325d80d6bc866525caceadd8957d5bdea9..e9278e84972ebde0164a0028dbaa44af980c03de 100644 (file)
@@ -793,6 +793,7 @@ this.websocketListen = function (servers, handler) {
             }
             callback(null, true);
         }).on('connection', kiwi.websocketConnection);
+        io.of('/kiwi').on('error', console.log);
     });
 };
 
@@ -840,6 +841,7 @@ this.websocketConnection = function (websocket) {
         });
         websocket.on('message', kiwi.websocketMessage);
         websocket.on('disconnect', kiwi.websocketDisconnect);
+        websocket.on('error', console.log);
     }
 };
 
@@ -990,6 +992,9 @@ this.IRCConnection = function (websocket, nick, host, port, ssl, password, callb
         });
         bound_events = kiwi.bindIRCCommands(that, websocket);
     };
+    
+    that.on('error', console.log);
+    
 };