From 2a6db044d13587ae1253918944934033a68c379e Mon Sep 17 00:00:00 2001 From: Nebz <28622481+NebzHB@users.noreply.github.com> Date: Fri, 13 Sep 2024 14:49:30 +0200 Subject: [PATCH] change for rpi and nodejs 20 --- lib/jeedom-api.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/jeedom-api.js b/lib/jeedom-api.js index 38d1ecf..be3b939 100755 --- a/lib/jeedom-api.js +++ b/lib/jeedom-api.js @@ -17,8 +17,10 @@ 'use strict'; const axios = require('axios'); const async = require('async'); +const http = require('http'); var DEV_DEBUG; var USE_QUEUES; +axios.defaults.httpAgent = new http.Agent({ keepAlive: false }); function JeedomClient(url, apikey, Plateform, myPlugin) { this.apikey = apikey;