aotrautils 0.0.319 → 0.0.321

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 (03/12/2022-22:26:44)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (04/12/2022-00:10:35)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4827,7 +4827,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4827
4827
 
4828
4828
 
4829
4829
 
4830
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (03/12/2022-22:26:44)»*/
4830
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (04/12/2022-00:10:35)»*/
4831
4831
  /*-----------------------------------------------------------------------------*/
4832
4832
  /* ## Utility global methods in a browser (htmljs) client environment.
4833
4833
  *
@@ -11410,18 +11410,7 @@ initClient=function(isNodeContext=true, useSocketIOImplementation=/*DEBUG*/false
11410
11410
  if(selfParam) doOnServerConnection.apply(selfParam,[socketToServer]);
11411
11411
  else doOnServerConnection(socketToServer);
11412
11412
  }
11413
-
11414
- // // Ping handling :
11415
- // if(useSocketIOImplementation){
11416
- // nodeClientInstance.receive("protocol",(message)=>{
11417
- // if(message.type!=="ping") return;
11418
- // nodeClientInstance.send("protocol",{type:"pong"});
11419
- //
11420
- // // DBG
11421
- // lognow("DEBUG : CLIENT : Pong sent.");
11422
- // });
11423
- // }
11424
-
11413
+
11425
11414
 
11426
11415
  });
11427
11416
 
@@ -12960,7 +12949,7 @@ createOritaMicroClient=function(url, port, isNode=false){
12960
12949
  };
12961
12950
 
12962
12951
 
12963
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (03/12/2022-22:26:44)»*/
12952
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (04/12/2022-00:10:35)»*/
12964
12953
  /*-----------------------------------------------------------------------------*/
12965
12954
 
12966
12955
 
@@ -14188,7 +14177,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14188
14177
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14189
14178
 
14190
14179
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14191
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (03/12/2022-22:26:44)»*/
14180
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (04/12/2022-00:10:35)»*/
14192
14181
  /*-----------------------------------------------------------------------------*/
14193
14182
 
14194
14183
 
@@ -14563,8 +14552,8 @@ WebsocketImplementation={
14563
14552
 
14564
14553
  // With «ws» library we have no choive than register message events inside a «connection» event !
14565
14554
 
14566
- // DBG
14567
- lognow("(SERVER) RECEIVED SOMETHING FROM CLIENT...", eventOrMessage.data);
14555
+ // // DBG
14556
+ // lognow("(SERVER) RECEIVED SOMETHING FROM CLIENT...", eventOrMessage.data);
14568
14557
 
14569
14558
  // dataWrapped=JSON.parse(dataWrapped);
14570
14559
  // dataWrapped=getAt(dataWrapped,0);// We get the root element
@@ -14573,9 +14562,9 @@ WebsocketImplementation={
14573
14562
  const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
14574
14563
 
14575
14564
 
14576
- // DBG
14577
- lognow("(SERVER) dataWrapped.channelName:",dataWrapped.channelName);
14578
- lognow("(SERVER) receptionEntryPoint.channelName:",receptionEntryPoint.channelName);
14565
+ // // DBG
14566
+ // lognow("(SERVER) dataWrapped.channelName:",dataWrapped.channelName);
14567
+ // lognow("(SERVER) receptionEntryPoint.channelName:",receptionEntryPoint.channelName);
14579
14568
 
14580
14569
 
14581
14570
  // Channel information is stored in exchanged data :
@@ -14624,6 +14613,9 @@ WebsocketImplementation={
14624
14613
 
14625
14614
  if(!clientSocketParam){
14626
14615
 
14616
+ // DBG
14617
+ lognow("(SERVER) (server sends to all clients)");
14618
+
14627
14619
  // TODO : FIXME : Use one single interface !
14628
14620
  let serverClients;
14629
14621
  if(!WebsocketImplementation.useSocketIOImplementation) serverClients=nodeServerInstance.serverSocket.clients;
@@ -14657,6 +14649,10 @@ WebsocketImplementation={
14657
14649
 
14658
14650
  }else{
14659
14651
 
14652
+ // DBG
14653
+ lognow("(SERVER) (server sends to a client)");
14654
+
14655
+
14660
14656
  // TODO : FIXME : Use one single interface !
14661
14657
  let clientSocket=clientSocketParam;
14662
14658
  if(!WebsocketImplementation.useSocketIOImplementation) if(clientSocket.readyState!==WebSocket.OPEN) return;
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.319",
3
+ "version": "0.0.321",
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)",