(id: string, data: any)
| 521 | } |
| 522 | //FIXME: emitMJ rename |
| 523 | private emitMJ(id: string, data: any) { |
| 524 | const event = this.getEventById(id); |
| 525 | if (!event) return; |
| 526 | this.emit(event.nonce, data); |
| 527 | } |
| 528 | |
| 529 | on(event: string, callback: (message: any) => void) { |
| 530 | this.event.push({ event, callback }); |
no test coverage detected