()
| 106 | } |
| 107 | |
| 108 | public async close(): Promise<void> { |
| 109 | this.channel && (await this.channel.close()); |
| 110 | this.server && (await this.server.close()); |
| 111 | this.pendingEventListeners = []; |
| 112 | } |
| 113 | |
| 114 | public async start( |
| 115 | callback?: (err?: unknown, ...optionalParams: unknown[]) => void, |