aotrautils-srv 0.0.133 → 0.0.136

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:08:50)»*/
3
+ /*utils COMMONS library associated with aotra version : «1.0.0.000 (16/07/2022-17:33:57)»*/
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:08:50)»*/
4831
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (16/07/2022-17:33:57)»*/
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
  },
@@ -5291,7 +5302,7 @@ WebsocketImplementation={
5291
5302
  foreach(nodeServerInstance.receptionEntryPoints,(receptionEntryPoint)=>{
5292
5303
 
5293
5304
  // DBG
5294
- console.log("ENTRY POINT !");
5305
+ console.log("ENTRY POINT !",clientSocket);
5295
5306
 
5296
5307
  receptionEntryPoint.execute(clientSocket);
5297
5308
  });
@@ -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
 
@@ -5840,12 +5849,19 @@ launchNodeHTTPServer=function(port, doOnConnect=null, doOnFinalizeServer=null, /
5840
5849
 
5841
5850
 
5842
5851
  server.onFinalize((serverParam)=>{
5852
+
5853
+ // DBG
5854
+ lognow("onFinalize!!!!!");
5855
+
5843
5856
  if(doOnFinalizeServer) doOnFinalizeServer(serverParam);
5844
5857
  });
5845
5858
 
5846
5859
 
5847
5860
  // TRACE
5848
5861
  console.log("INFO : SERVER : Generic Nodejs server launched and listening on port:" + port + "!");
5862
+
5863
+
5864
+
5849
5865
 
5850
5866
 
5851
5867
  return server;
@@ -5962,6 +5978,7 @@ initNodeServer=function(doOnClientConnection=null, doOnFinalizeServer=null, /*OP
5962
5978
  //aotraNodeServer.serverManager.microClientsSockets=[];
5963
5979
  // UNUSEFUL :
5964
5980
  //aotraNodeServer.serverManager.mainClientsSockets=[];
5981
+
5965
5982
  aotraNodeServer.serverManager.start=function(){
5966
5983
 
5967
5984
  // Eventual encryption options :
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.133",
3
+ "version": "0.0.136",
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)",