Browse Source

start ioserver on HTTP and HTTPS servers (both)

develop
Rob Colbert 10 months ago
parent
commit
5a3313ad03
  1. 5
      lib/site-platform.js

5
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);
}

Loading…
Cancel
Save