daveappserver 0.8.0 → 0.8.1

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.
Files changed (2) hide show
  1. package/appserver.js +5 -2
  2. package/package.json +2 -2
package/appserver.js CHANGED
@@ -1,4 +1,4 @@
1
- var myVersion = "0.8.0", myProductName = "daveAppServer";
1
+ var myVersion = "0.8.1", myProductName = "daveAppServer";
2
2
 
3
3
  exports.start = startup;
4
4
  exports.notifySocketSubscribers = notifySocketSubscribers;
@@ -285,6 +285,7 @@ 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
288
289
  theWsServer.clients.forEach (function (conn, ix) {
289
290
  ctTotalSockets++;
290
291
  if (conn.appData !== undefined) { //it's one of ours
@@ -294,6 +295,7 @@ function cleanFileStats (stats) { //4/19/21 by DW
294
295
  }
295
296
  if (flnotify) {
296
297
  try {
298
+ console.log ("notifySocketSubscribers: conn.appData.emailAddress == " + conn.appData.emailAddress); //5/25/25 by DW
297
299
  conn.send (verb + "\r" + payload); //5/25/25 by DW
298
300
  conn.appData.whenLastUpdate = now;
299
301
  conn.appData.ctUpdates++;
@@ -325,7 +327,6 @@ function cleanFileStats (stats) { //4/19/21 by DW
325
327
  theWsServer.clients.forEach (function (conn, ix) {
326
328
  if (conn.appData !== undefined) { //it's one of ours
327
329
  theArray.push ({
328
- arrayIndex: ix,
329
330
  lastVerb: conn.appData.lastVerb,
330
331
  urlToWatch: conn.appData.urlToWatch,
331
332
  domain: conn.appData.domain,
@@ -348,6 +349,7 @@ function cleanFileStats (stats) { //4/19/21 by DW
348
349
  urlToWatch: undefined,
349
350
  domain: undefined
350
351
  };
352
+ console.log ("\nhandleWebSocketConnection: getOpenSocketsArray () == " + utils.jsonStringify (getOpenSocketsArray ()) + "\n"); //6/7/21 by DW
351
353
 
352
354
  function logToConsole (conn, verb, value) {
353
355
  getDomainName (conn._socket.remoteAddress, function (theName) { //log the request
@@ -374,6 +376,7 @@ function cleanFileStats (stats) { //4/19/21 by DW
374
376
  }
375
377
 
376
378
  conn.on ("message", function (s) {
379
+ s = s.toString (); //5/25/25 by DW
377
380
  var words = s.split (" ");
378
381
  if (words.length > 1) { //new protocol as of 11/29/15 by DW
379
382
  conn.appData.whenLastUpdate = now;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "daveappserver",
3
3
  "description": "Factored code that was appearing in all my servers.",
4
- "version": "0.8.0",
4
+ "version": "0.8.1",
5
5
  "main": "appserver.js",
6
6
  "repository": {
7
7
  "type" : "git",
@@ -25,6 +25,6 @@
25
25
  "daves3": "*",
26
26
  "davehttp": "*",
27
27
  "davemail": "*",
28
- "wpidentity": "^0.4.14"
28
+ "wpidentity": "^0.5.27"
29
29
  }
30
30
  }