diff --git a/js/socketclient.js b/js/socketclient.js index 5f24baf5..d10c0d60 100644 --- a/js/socketclient.js +++ b/js/socketclient.js @@ -9,7 +9,7 @@ var MMSocket = function(moduleName) { // Private Methods var base = "/"; - if (typeof config !== "undefined") { + if ((typeof config !== "undefined") && (typeof config.basePath !== "undefined")) { base = config.basePath; } self.socket = io("/" + self.moduleName, {