From 756dc8903e57dd2529ba151cb6daeff9c0e2594f Mon Sep 17 00:00:00 2001 From: Eric Fernandez Date: Fri, 21 Jun 2019 14:59:11 -0300 Subject: [PATCH] client on error --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 84022c8..0ddb788 100644 --- a/index.js +++ b/index.js @@ -27,4 +27,8 @@ client.on('open', function open() { }); }); +client.on('error', function(e) { + console.log(e); +}) + console.log('Sevice connected to wsServer: ' + config.urlHO); -- 1.9.1