(ch: string, data: any = {})
| 38 | } |
| 39 | |
| 40 | emit(ch: string, data: any = {}): any { |
| 41 | // This check is needed because data-batching can cause extra data to be |
| 42 | // emitted after the window has already closed |
| 43 | if (!this.win.isDestroyed()) { |
| 44 | this.wc.send(this.id, {ch, data}); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | destroy() { |
| 49 | this.removeAllListeners(); |
no outgoing calls
no test coverage detected