|
@ -414,13 +414,12 @@ module.exports.startWebServer = async (dtp) => { |
|
|
await module.createHttpsServer(dtp, module.app); |
|
|
await module.createHttpsServer(dtp, module.app); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// prefer to attach Socket.io to the HTTPS server and fall back to HTTP
|
|
|
|
|
|
await module.createSocketServer(dtp, module.https || module.http); |
|
|
|
|
|
|
|
|
|
|
|
if (module.http) { |
|
|
if (module.http) { |
|
|
|
|
|
await module.createSocketServer(dtp, module.http); |
|
|
await module.startHttpServer(dtp, module.http, dtp.config.http); |
|
|
await module.startHttpServer(dtp, module.http, dtp.config.http); |
|
|
} |
|
|
} |
|
|
if (module.https) { |
|
|
if (module.https) { |
|
|
|
|
|
await module.createSocketServer(dtp, module.https); |
|
|
await module.startHttpServer(dtp, module.https, dtp.config.https); |
|
|
await module.startHttpServer(dtp, module.https, dtp.config.https); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|