(options)
| 12 | |
| 13 | class ExpressServerTask extends Task { |
| 14 | constructor(options) { |
| 15 | super(options); |
| 16 | this.emitter = new EventEmitter(); |
| 17 | this.express = this.express || require('express'); |
| 18 | this.http = this.http || require('http'); |
| 19 | this.https = this.https || require('https'); |
| 20 | |
| 21 | let serverRestartDelayTime = this.serverRestartDelayTime || 100; |
| 22 | this.scheduleServerRestart = debounce(function () { |
| 23 | this.restartHttpServer(); |
| 24 | }, serverRestartDelayTime); |
| 25 | } |
| 26 | |
| 27 | on() { |
| 28 | this.emitter.on.apply(this.emitter, arguments); |
nothing calls this directly
no test coverage detected