start ioserver on HTTP and HTTPS servers (both)

master
rob 11 months ago
parent c49160d517
commit 5a3313ad03

@ -414,13 +414,12 @@ module.exports.startWebServer = async (dtp) => {
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) {
await module.createSocketServer(dtp, module.http);
await module.startHttpServer(dtp, module.http, dtp.config.http);
}
if (module.https) {
await module.createSocketServer(dtp, module.https);
await module.startHttpServer(dtp, module.https, dtp.config.https);
}

Loading…
Cancel
Save