diff --git a/index.js b/index.js index a75b871..d4464a4 100644 --- a/index.js +++ b/index.js @@ -72,6 +72,7 @@ function heartbeat() { // sends out pings plus a conservative assumption of the latency. pingTimeout = setTimeout(() => { client.terminate(); + process.exit(1); }, 10000 + 1000); } console.log('Sevice connected to wsServer: ' + config.urlHO);