* Start the express app and the lb4 app
()
| 63 | * Start the express app and the lb4 app |
| 64 | */ |
| 65 | public async start() { |
| 66 | await this.lbApp.start(); |
| 67 | const port = this.lbApp.restServer.config.port ?? 3000; |
| 68 | const host = this.lbApp.restServer.config.host ?? 'localhost'; |
| 69 | this.server = this.webApp.listen(port, host); |
| 70 | await once(this.server, 'listening'); |
| 71 | const add = <AddressInfo>this.server.address(); |
| 72 | this.url = `http://${add.address}:${add.port}`; |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * Stop lb4 and express apps |
no test coverage detected