* ServerModule's createServer() is now async

* Re-write of NNTP Message-ID <> internal message UUIDs
This commit is contained in:
Bryan Ashby 2018-12-27 02:19:26 -07:00
parent 346815a4f2
commit 9d1815682d
11 changed files with 305 additions and 84 deletions

View file

@ -104,7 +104,7 @@ exports.getModule = class WebServerModule extends ServerModule {
return this.enableHttp || this.enableHttps;
}
createServer() {
createServer(cb) {
if(this.enableHttp) {
this.httpServer = http.createServer( (req, resp) => this.routeRequest(req, resp) );
}
@ -121,6 +121,8 @@ exports.getModule = class WebServerModule extends ServerModule {
this.httpsServer = https.createServer(options, (req, resp) => this.routeRequest(req, resp) );
}
return cb(null);
}
listen() {