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) {