aotrautils-srv 0.0.225 → 0.0.228

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.
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- /*utils COMMONS library associated with aotra version : «1_29072022-2359 (30/07/2022-00:15:34)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (30/07/2022-12:12:32)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4827,7 +4827,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4827
4827
 
4828
4828
 
4829
4829
 
4830
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (30/07/2022-00:15:34)»*/
4830
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (30/07/2022-12:12:32)»*/
4831
4831
  /*-----------------------------------------------------------------------------*/
4832
4832
 
4833
4833
 
@@ -5071,19 +5071,21 @@ WebsocketImplementation={
5071
5071
  if(isNodeContext){
5072
5072
 
5073
5073
  // NODE SERVER :
5074
+ // DBG
5075
+ lognow("INFO : Loading NODE SERVER socket.io libraries.")
5074
5076
  if(typeof(Socket)==="undefined"){
5075
5077
  // TRACE
5076
5078
  console.log("«socket.io» NODE SERVER library not called yet, calling it now.");
5077
5079
  Socket=require("socket.io");
5078
- return WebsocketImplementation;
5079
5080
  }
5080
5081
  if(typeof(Socket)==="undefined"){
5081
5082
  // TRACE
5082
5083
  console.log("ERROR : «socket.io» NODE CLIENT/SERVER library not found. Cannot launch nodejs server. Aborting.");
5083
- return WebsocketImplementation;
5084
5084
  }
5085
5085
 
5086
- // NODE CLIENT :
5086
+ // NODE CLIENT :
5087
+ // DBG
5088
+ lognow("INFO : Loading NODE CLIENT socket.io libraries.")
5087
5089
  if(typeof(io)==="undefined"){
5088
5090
  // TRACE
5089
5091
  console.log("«socket.io-client» NODE CLIENT library not called yet, calling it now.");
@@ -5092,10 +5094,7 @@ WebsocketImplementation={
5092
5094
  if(typeof(io)==="undefined"){
5093
5095
  // TRACE
5094
5096
  console.log("ERROR : «socket-client.io» NODE CLIENT library not found. Cannot launch nodejs server. Aborting.");
5095
- return WebsocketImplementation;
5096
5097
  }
5097
-
5098
-
5099
5098
  }
5100
5099
 
5101
5100
  }else{
@@ -5112,16 +5111,13 @@ WebsocketImplementation={
5112
5111
  // TRACE
5113
5112
  console.log("ERROR : «ws» CONSOLE/BROWSER CLIENT/SERVER library not found. Cannot launch nodejs server. Aborting.");
5114
5113
  }
5115
- return WebsocketImplementation;
5116
5114
  }
5117
5115
  }
5118
5116
 
5119
5117
  }
5120
-
5121
5118
 
5122
5119
  // *********************************************************************************
5123
5120
 
5124
-
5125
5121
  return WebsocketImplementation;
5126
5122
  },
5127
5123
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.225",
3
+ "version": "0.0.228",
4
4
  "main": "aotrautils-srv.build.js",
5
5
  "description": "A library for vanilla javascript utils (server-side) used in aotra javascript CMS",
6
6
  "author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",