From fa13e705623916efae01f3a442f2727670006d48 Mon Sep 17 00:00:00 2001 From: Moe Date: Sun, 28 Nov 2021 11:06:01 -0800 Subject: [PATCH] Child Node Framework Update : fix disconnected child recovery --- libs/childNode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/childNode.js b/libs/childNode.js index 95b3a6e2..6d1d9879 100644 --- a/libs/childNode.js +++ b/libs/childNode.js @@ -71,7 +71,7 @@ module.exports = function(s,config,lang,app,io){ } } client.on('message',onAuthenticate) - client.on('disconnect',() => { + client.on('close',() => { onDataConnectionDisconnect(client, req) }) })