Increase libLink event emitter leak warning limit (#600)

This commit is contained in:
Daniel authored and GitHub committed 2024-02-25 23:50:14 +01:00
1 parent 2075814ed1
commit a68bb9c0a8
1 file changed
+3
+3
View File
@@ -107,6 +107,9 @@ export class Link {
) { ) {
this.handle(libData.PingRequest, async () => {}); this.handle(libData.PingRequest, async () => {});
// Prevent warnings about possible memory leak due to large number of event listeners
connector.setMaxListeners(20);
// Process messages received by the connector // Process messages received by the connector
connector.on("message", payload => { connector.on("message", payload => {
try { try {