diff --git a/lib/site-platform.js b/lib/site-platform.js index aeaf55e..1848f45 100644 --- a/lib/site-platform.js +++ b/lib/site-platform.js @@ -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); }