added basename config

use basename in socket.io path fix #1973
This commit is contained in:
Leon Kiefer
2020-04-05 23:00:38 +02:00
parent ca3275757b
commit 54542f7f07
4 changed files with 6 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ if (typeof(mmPort) !== "undefined") {
var defaults = {
address: address,
port: port,
basename: "/",
kioskmode: false,
electronOptions: {},
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],

View File

@@ -9,7 +9,7 @@ var MMSocket = function(moduleName) {
// Private Methods
self.socket = io("/" + self.moduleName, {
path: window.location.pathname + "socket.io"
path: config.basename + "socket.io"
});
var notificationCallback = function() {};