| 14 | } |
| 15 | |
| 16 | class Publisher { |
| 17 | emitter: any; |
| 18 | |
| 19 | constructor(emitter: any) { |
| 20 | this.emitter = emitter; |
| 21 | } |
| 22 | |
| 23 | publish(channel: string, message: string): void { |
| 24 | this.emitter.emit(channel, message); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | class Consumer extends events.EventEmitter { |
| 29 | emitter: any; |
nothing calls this directly
no outgoing calls
no test coverage detected