From 09ada62dafb8b04cb9a71e59610f624f68a7031b Mon Sep 17 00:00:00 2001 From: Kirill Date: Mon, 18 May 2026 11:24:01 +0500 Subject: [PATCH] feat: add notification event bus --- server/src/lib/notifications/event-bus.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 server/src/lib/notifications/event-bus.js diff --git a/server/src/lib/notifications/event-bus.js b/server/src/lib/notifications/event-bus.js new file mode 100644 index 0000000..b3dbbf3 --- /dev/null +++ b/server/src/lib/notifications/event-bus.js @@ -0,0 +1,7 @@ +import { EventEmitter } from 'node:events' + +export function createEventBus() { + const bus = new EventEmitter() + bus.setMaxListeners(50) + return bus +}