From 14133aa988a9dbf72b63a020e18239c8df8a5644 Mon Sep 17 00:00:00 2001 From: Antoine Arlaud Date: Tue, 12 Nov 2024 12:17:41 +0100 Subject: [PATCH] chore: increase max listeners default --- lib/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/index.ts b/lib/index.ts index 50fb6d0a1..71e833a1b 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -26,6 +26,8 @@ process.on('unhandledRejection', (reason: any) => { }); export const app = async ({ port = 7341, client = false, config }) => { + const events = require('events'); + events.EventEmitter.defaultMaxListeners = 30; try { // note: the config is loaded in the main function to allow us to mock in tests if (process.env.JEST_WORKER_ID) {