FossyTom / ioBroker.goodwe

Communication with GoodWe Inverter ET/EH/BH/BT Series
MIT License
12 stars 5 forks source link

Fix ressource usage #20

Open mrx8 opened 3 weeks ago

mrx8 commented 3 weeks ago

The #client.on()-calls will install the handlers forever. In long running instances, each request installs a handler which will subsequently be called on each message which is received. That means it will pile up, soak up ultimately all memory and increase CPU on the path to hell ;) The solution could be .once() instead of .on()