daveappserver 0.8.1 → 0.8.3
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 +1 -5
- package/package.json +1 -1
package/appserver.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var myVersion = "0.8.
|
|
1
|
+
var myVersion = "0.8.3", myProductName = "daveAppServer";
|
|
2
2
|
|
|
3
3
|
exports.start = startup;
|
|
4
4
|
exports.notifySocketSubscribers = notifySocketSubscribers;
|
|
@@ -285,7 +285,6 @@ function cleanFileStats (stats) { //4/19/21 by DW
|
|
|
285
285
|
payload = utils.jsonStringify (payload);
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
console.log ("\nnotifySocketSubscribers: getOpenSocketsArray () == " + utils.jsonStringify (getOpenSocketsArray ()) + "\n"); //6/7/21 by DW
|
|
289
288
|
theWsServer.clients.forEach (function (conn, ix) {
|
|
290
289
|
ctTotalSockets++;
|
|
291
290
|
if (conn.appData !== undefined) { //it's one of ours
|
|
@@ -295,14 +294,12 @@ function cleanFileStats (stats) { //4/19/21 by DW
|
|
|
295
294
|
}
|
|
296
295
|
if (flnotify) {
|
|
297
296
|
try {
|
|
298
|
-
console.log ("notifySocketSubscribers: conn.appData.emailAddress == " + conn.appData.emailAddress); //5/25/25 by DW
|
|
299
297
|
conn.send (verb + "\r" + payload); //5/25/25 by DW
|
|
300
298
|
conn.appData.whenLastUpdate = now;
|
|
301
299
|
conn.appData.ctUpdates++;
|
|
302
300
|
ctUpdates++;
|
|
303
301
|
}
|
|
304
302
|
catch (err) {
|
|
305
|
-
console.log ("notifySocketSubscribers: err.message == " + err.message);
|
|
306
303
|
}
|
|
307
304
|
}
|
|
308
305
|
}
|
|
@@ -349,7 +346,6 @@ function cleanFileStats (stats) { //4/19/21 by DW
|
|
|
349
346
|
urlToWatch: undefined,
|
|
350
347
|
domain: undefined
|
|
351
348
|
};
|
|
352
|
-
console.log ("\nhandleWebSocketConnection: getOpenSocketsArray () == " + utils.jsonStringify (getOpenSocketsArray ()) + "\n"); //6/7/21 by DW
|
|
353
349
|
|
|
354
350
|
function logToConsole (conn, verb, value) {
|
|
355
351
|
getDomainName (conn._socket.remoteAddress, function (theName) { //log the request
|