+import { EventEmitter } from 'node:events'
+
import _Ajv, { type ValidateFunction } from 'ajv'
import _ajvFormats from 'ajv-formats'
const moduleName = 'OCPPIncomingRequestService'
-export abstract class OCPPIncomingRequestService {
+export abstract class OCPPIncomingRequestService extends EventEmitter {
private static instance: OCPPIncomingRequestService | null = null
private readonly version: OCPPVersion
protected readonly ajv: Ajv
>
protected constructor (version: OCPPVersion) {
+ super()
this.version = version
this.ajv = new Ajv({
keywords: ['javaType'],