From 5a3313ad03798b13b77d021f2fb56dafd7c6d013 Mon Sep 17 00:00:00 2001 From: rob Date: Fri, 23 Jun 2023 19:13:27 -0400 Subject: [PATCH] start ioserver on HTTP and HTTPS servers (both) --- lib/site-platform.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); }