daveappserver 0.6.6 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/appserver.js +7 -3
- package/package.json +1 -1
package/appserver.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var myVersion = "0.6.
|
|
1
|
+
var myVersion = "0.6.7", myProductName = "daveAppServer";
|
|
2
2
|
|
|
3
3
|
exports.start = startup;
|
|
4
4
|
exports.notifySocketSubscribers = notifySocketSubscribers;
|
|
@@ -1528,8 +1528,12 @@ function startup (options, callback) {
|
|
|
1528
1528
|
console.log ("startup: can't start the server because config.myDomain is not defined.");
|
|
1529
1529
|
}
|
|
1530
1530
|
else {
|
|
1531
|
-
config.urlServerForClient
|
|
1532
|
-
|
|
1531
|
+
if (config.urlServerForClient === undefined) { //1/30/23 by DW
|
|
1532
|
+
config.urlServerForClient = "http://" + config.myDomain + "/";
|
|
1533
|
+
}
|
|
1534
|
+
if (config.urlWebsocketServerForClient === undefined) { //1/30/23 by DW
|
|
1535
|
+
config.urlWebsocketServerForClient = "ws://" + utils.stringNthField (config.myDomain, ":", 1) + ":" + config.websocketPort + "/";
|
|
1536
|
+
}
|
|
1533
1537
|
webSocketStartup ();
|
|
1534
1538
|
setInterval (everySecond, 1000);
|
|
1535
1539
|
utils.runEveryMinute (everyMinute);
|