(ev: string, data: any)
| 40 | } |
| 41 | |
| 42 | emit(ev: string, data: any) { |
| 43 | if (!this.id) { |
| 44 | throw new Error('Not ready'); |
| 45 | } |
| 46 | this.ipc.send(this.id, {ev, data}); |
| 47 | } |
| 48 | |
| 49 | removeListener(ev: string, fn: (...args: any[]) => void) { |
| 50 | this.emitter.removeListener(ev, fn); |
no outgoing calls
no test coverage detected