aotrautils-srv 0.0.134 → 0.0.137

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.0.0.000 (16/07/2022-17:13:09)»*/
3
+ /*utils COMMONS library associated with aotra version : «1.0.0.000 (16/07/2022-17:37:36)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4828,7 +4828,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4828
4828
 
4829
4829
 
4830
4830
 
4831
- /*utils SERVER library associated with aotra version : «1.0.0.000 (16/07/2022-17:13:09)»*/
4831
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (16/07/2022-17:37:36)»*/
4832
4832
  /*-----------------------------------------------------------------------------*/
4833
4833
 
4834
4834
 
@@ -5059,9 +5059,9 @@ WebsocketImplementation={
5059
5059
 
5060
5060
 
5061
5061
  //
5062
- // NODE SERVER/CLIENT
5062
+ // CONSOLE NODE SERVER/CLIENT
5063
5063
  //
5064
- getStatic:(isNodeContext=true, useSocketIOImplementation=/*DEBUG*/false)=>{
5064
+ getStatic:(isNodeContext=true, useSocketIOImplementation=/*DEBUG*/true)=>{
5065
5065
 
5066
5066
  WebsocketImplementation.isNodeContext=isNodeContext;
5067
5067
  WebsocketImplementation.useSocketIOImplementation=useSocketIOImplementation;
@@ -5187,10 +5187,21 @@ WebsocketImplementation={
5187
5187
  };
5188
5188
 
5189
5189
 
5190
+
5191
+
5190
5192
  if(!WebsocketImplementation.useSocketIOImplementation) clientSocketParam.addEventListener("message", doOnMessage);
5191
5193
  else clientSocketParam.on(channelName, doOnMessage);
5192
5194
 
5193
5195
 
5196
+
5197
+ // DBG
5198
+ nodeServerInstance.serverSocket.on("protocol",()=>{
5199
+
5200
+ // DBG
5201
+ lognow("FUUUUUUUUUUUUUUUUUUUCK");
5202
+
5203
+ });
5204
+
5194
5205
 
5195
5206
 
5196
5207
  },
@@ -5300,8 +5311,6 @@ WebsocketImplementation={
5300
5311
  doOnConnection(nodeServerInstance, clientSocket);
5301
5312
 
5302
5313
 
5303
-
5304
-
5305
5314
  // To make the server aware of the clients connections states :
5306
5315
  clientSocket.stateCheckInterval=setInterval(()=>{
5307
5316
 
@@ -5850,6 +5859,9 @@ launchNodeHTTPServer=function(port, doOnConnect=null, doOnFinalizeServer=null, /
5850
5859
 
5851
5860
  // TRACE
5852
5861
  console.log("INFO : SERVER : Generic Nodejs server launched and listening on port:" + port + "!");
5862
+
5863
+
5864
+
5853
5865
 
5854
5866
 
5855
5867
  return server;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.134",
3
+ "version": "0.0.137",
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)",