aotrautils 0.0.129 → 0.0.132

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 CLIENT library associated with aotra version : «1.0.0.000 (16/07/2022-17:08:50)»*/
4831
+ /*utils CLIENT library associated with aotra version : «1.0.0.000 (16/07/2022-17:33:57)»*/
4832
4832
  /*-----------------------------------------------------------------------------*/
4833
4833
  /* ## Utility global methods in a browser (htmljs) client environment.
4834
4834
  *
@@ -11331,7 +11331,7 @@ function getPointsFromSVGDString(str){
11331
11331
  // -Client :
11332
11332
 
11333
11333
  // TODO : Use everywhere it's applicable !
11334
- initClient=function(isNodeContext=true, useSocketIOImplementation=/*DEBUG*/false, doOnServerConnection=null, url, /*OPTIONAL*/port=25000, isSecure=true, /*OPTIONAL*/timeout=10000, /*OPTIONAL*/selfParam=null){
11334
+ initClient=function(isNodeContext=true, useSocketIOImplementation=/*DEBUG*/true, doOnServerConnection=null, url, /*OPTIONAL*/port=25000, isSecure=true, /*OPTIONAL*/timeout=10000, /*OPTIONAL*/selfParam=null){
11335
11335
  let aotraClient={};
11336
11336
 
11337
11337
  aotraClient.client={};
@@ -11678,7 +11678,7 @@ createFusrodaClient=function(doOnClientReady, doOnDataReception, urlParam=null,
11678
11678
 
11679
11679
 
11680
11680
 
11681
- /*utils GEOMETRY library associated with aotra version : «1.0.0.000 (16/07/2022-17:08:50)»*/
11681
+ /*utils GEOMETRY library associated with aotra version : «1.0.0.000 (16/07/2022-17:33:57)»*/
11682
11682
  /*-----------------------------------------------------------------------------*/
11683
11683
 
11684
11684
 
@@ -12884,7 +12884,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
12884
12884
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
12885
12885
 
12886
12886
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
12887
- /*utils SERVER library associated with aotra version : «1.0.0.000 (16/07/2022-17:08:50)»*/
12887
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (16/07/2022-17:33:57)»*/
12888
12888
  /*-----------------------------------------------------------------------------*/
12889
12889
 
12890
12890
 
@@ -13115,9 +13115,9 @@ WebsocketImplementation={
13115
13115
 
13116
13116
 
13117
13117
  //
13118
- // NODE SERVER/CLIENT
13118
+ // CONSOLE NODE SERVER/CLIENT
13119
13119
  //
13120
- getStatic:(isNodeContext=true, useSocketIOImplementation=/*DEBUG*/false)=>{
13120
+ getStatic:(isNodeContext=true, useSocketIOImplementation=/*DEBUG*/true)=>{
13121
13121
 
13122
13122
  WebsocketImplementation.isNodeContext=isNodeContext;
13123
13123
  WebsocketImplementation.useSocketIOImplementation=useSocketIOImplementation;
@@ -13243,10 +13243,21 @@ WebsocketImplementation={
13243
13243
  };
13244
13244
 
13245
13245
 
13246
+
13247
+
13246
13248
  if(!WebsocketImplementation.useSocketIOImplementation) clientSocketParam.addEventListener("message", doOnMessage);
13247
13249
  else clientSocketParam.on(channelName, doOnMessage);
13248
13250
 
13249
13251
 
13252
+
13253
+ // DBG
13254
+ nodeServerInstance.serverSocket.on("protocol",()=>{
13255
+
13256
+ // DBG
13257
+ lognow("FUUUUUUUUUUUUUUUUUUUCK");
13258
+
13259
+ });
13260
+
13250
13261
 
13251
13262
 
13252
13263
  },
@@ -13347,7 +13358,7 @@ WebsocketImplementation={
13347
13358
  foreach(nodeServerInstance.receptionEntryPoints,(receptionEntryPoint)=>{
13348
13359
 
13349
13360
  // DBG
13350
- console.log("ENTRY POINT !");
13361
+ console.log("ENTRY POINT !",clientSocket);
13351
13362
 
13352
13363
  receptionEntryPoint.execute(clientSocket);
13353
13364
  });
@@ -13356,8 +13367,6 @@ WebsocketImplementation={
13356
13367
  doOnConnection(nodeServerInstance, clientSocket);
13357
13368
 
13358
13369
 
13359
-
13360
-
13361
13370
  // To make the server aware of the clients connections states :
13362
13371
  clientSocket.stateCheckInterval=setInterval(()=>{
13363
13372
 
@@ -13896,12 +13905,19 @@ launchNodeHTTPServer=function(port, doOnConnect=null, doOnFinalizeServer=null, /
13896
13905
 
13897
13906
 
13898
13907
  server.onFinalize((serverParam)=>{
13908
+
13909
+ // DBG
13910
+ lognow("onFinalize!!!!!");
13911
+
13899
13912
  if(doOnFinalizeServer) doOnFinalizeServer(serverParam);
13900
13913
  });
13901
13914
 
13902
13915
 
13903
13916
  // TRACE
13904
13917
  console.log("INFO : SERVER : Generic Nodejs server launched and listening on port:" + port + "!");
13918
+
13919
+
13920
+
13905
13921
 
13906
13922
 
13907
13923
  return server;
@@ -14018,6 +14034,7 @@ initNodeServer=function(doOnClientConnection=null, doOnFinalizeServer=null, /*OP
14018
14034
  //aotraNodeServer.serverManager.microClientsSockets=[];
14019
14035
  // UNUSEFUL :
14020
14036
  //aotraNodeServer.serverManager.mainClientsSockets=[];
14037
+
14021
14038
  aotraNodeServer.serverManager.start=function(){
14022
14039
 
14023
14040
  // Eventual encryption options :
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.129",
3
+ "version": "0.0.132",
4
4
  "main": "aotrautils.build.js",
5
5
  "description": "A library for vanilla javascript utils (client-side) used in aotra javascript CMS",
6
6
  "author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",