From bcf7a340706d7499a511febf3af9663935188b26 Mon Sep 17 00:00:00 2001 From: Foxi352 Date: Sun, 3 Jul 2016 20:20:19 +0200 Subject: [PATCH] Bugfix in on-error event --- SmartHomeNGConnection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SmartHomeNGConnection.js b/SmartHomeNGConnection.js index 362b9bf..0adaebd 100755 --- a/SmartHomeNGConnection.js +++ b/SmartHomeNGConnection.js @@ -27,7 +27,7 @@ SmartHomeNGConnection.prototype.init = function () { that.startMonitoring(); connection.on('message', function(message) { that.receive(message); }); - connection.on('error', function() { + connection.on('error', function(error) { that.log(colorOn + '[SmartHomeNGConnection] WebSocket error: ' + error.toString() + colorOff) }); connection.on('close', function(code, description) {