(telemetryReporter: ITelemetryReporter)
| 355 | } |
| 356 | |
| 357 | protected async _startServer(telemetryReporter: ITelemetryReporter) { |
| 358 | const pipe = getRandomPipe(); |
| 359 | const server = await new Promise<net.Server>((resolve, reject) => { |
| 360 | const s = net |
| 361 | .createServer(socket => this._startSession(socket, telemetryReporter)) |
| 362 | .on('error', reject) |
| 363 | .listen(pipe, () => resolve(s)); |
| 364 | }); |
| 365 | |
| 366 | return { pipe, server }; |
| 367 | } |
| 368 | |
| 369 | protected _stopServer() { |
| 370 | this.run?.server.close(); |
nothing calls this directly
no test coverage detected