()
| 127 | } |
| 128 | |
| 129 | stop() { |
| 130 | if (!this.server) return; |
| 131 | |
| 132 | this.server.removeAllListeners(); |
| 133 | this.server.close(); |
| 134 | this.server = undefined; |
| 135 | |
| 136 | this.stopRemainingTimer(); |
| 137 | this.emit('close'); |
| 138 | this.blacklist.clear(); |
| 139 | |
| 140 | if (this.blacklistIntervalTimer) clearInterval(this.blacklistIntervalTimer); |
| 141 | this.blacklistIntervalTimer = undefined; |
| 142 | } |
| 143 | |
| 144 | updateConfiguration(options: UpdateServerOptions) { |
| 145 | this.disableSelfProtection = options.disableSelfProtection; |
no test coverage detected