Where to increase emitter.setMaxListeners() ?

I am accessing SK from multiple devices, browsers and browser tabs. Where can I increase this setting? Log shows: Nov 05 08:29:50 (node:441992) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 delta listeners added to [FullSignalK]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit (Use node --trace-warnings ... to show where the warning was created)
4 Replies
Scott Bender
Scott Bender4w ago
Usually, that means something is wrong Like you have clients connecting multiple times and holding connections. It can also happen at startup
Dirk SV MOIN
Dirk SV MOINOP4w ago
Thanks Scott, that is a explntion. Havens if I restart the server with multiple Clients accessing it. Will keep monitoring it.
Teppo Kurki
Teppo Kurki4w ago
i think we should increase that anyway - if @Dirk SV MOIN you want to create an issue, lest we forget
Dirk SV MOIN
Dirk SV MOINOP4w ago
Thanks Teppo.I created a case here: https://github.com/SignalK/signalk-server/issues/2137

Did you find this page helpful?