mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-29 21:34:32 -05:00
5dffe35ea1
Signed-off-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
712 B
712 B
In HedgeDoc we use an event system based on EventEmitter2. It's used to reduce circular dependencies between different services and inform these services about changes.
HedgeDoc's system is basically the system NestJS offers.
The config for the EventEmitterModule
is stored in events.ts
and exported as eventModuleConfig
.
In the same file enums for the event keys are defined. Each of these events is expected to be sent with an additional value. In the enum defintion a comment should tell you what exactly this value should be.