()
| 25 | } |
| 26 | |
| 27 | async stop () { |
| 28 | // Destroy all active connections before closing |
| 29 | // This prevents 'close' from hanging on platforms like Windows |
| 30 | this.server.closeAllConnections() |
| 31 | this.server.close() |
| 32 | return once(this.server, 'close') |
| 33 | } |
| 34 | |
| 35 | get port () { |
| 36 | return this.server.address().port |
no test coverage detected