daveappserver 0.8.0 → 0.8.2

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 +3 -3
  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.2", myProductName = "daveAppServer";
2
2
 
3
3
  exports.start = startup;
4
4
  exports.notifySocketSubscribers = notifySocketSubscribers;
@@ -300,7 +300,6 @@ function cleanFileStats (stats) { //4/19/21 by DW
300
300
  ctUpdates++;
301
301
  }
302
302
  catch (err) {
303
- console.log ("notifySocketSubscribers: err.message == " + err.message);
304
303
  }
305
304
  }
306
305
  }
@@ -325,7 +324,6 @@ function cleanFileStats (stats) { //4/19/21 by DW
325
324
  theWsServer.clients.forEach (function (conn, ix) {
326
325
  if (conn.appData !== undefined) { //it's one of ours
327
326
  theArray.push ({
328
- arrayIndex: ix,
329
327
  lastVerb: conn.appData.lastVerb,
330
328
  urlToWatch: conn.appData.urlToWatch,
331
329
  domain: conn.appData.domain,
@@ -348,6 +346,7 @@ function cleanFileStats (stats) { //4/19/21 by DW
348
346
  urlToWatch: undefined,
349
347
  domain: undefined
350
348
  };
349
+ console.log ("\nhandleWebSocketConnection: getOpenSocketsArray () == " + utils.jsonStringify (getOpenSocketsArray ()) + "\n"); //6/7/21 by DW
351
350
 
352
351
  function logToConsole (conn, verb, value) {
353
352
  getDomainName (conn._socket.remoteAddress, function (theName) { //log the request
@@ -374,6 +373,7 @@ function cleanFileStats (stats) { //4/19/21 by DW
374
373
  }
375
374
 
376
375
  conn.on ("message", function (s) {
376
+ s = s.toString (); //5/25/25 by DW
377
377
  var words = s.split (" ");
378
378
  if (words.length > 1) { //new protocol as of 11/29/15 by DW
379
379
  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.2",
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
  }