aotrautils 0.0.320 → 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-23:55:15)»*/
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-23:55:15)»*/
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
  *
@@ -12949,7 +12949,7 @@ createOritaMicroClient=function(url, port, isNode=false){
12949
12949
  };
12950
12950
 
12951
12951
 
12952
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (03/12/2022-23:55:15)»*/
12952
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (04/12/2022-00:10:35)»*/
12953
12953
  /*-----------------------------------------------------------------------------*/
12954
12954
 
12955
12955
 
@@ -14177,7 +14177,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14177
14177
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14178
14178
 
14179
14179
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14180
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (03/12/2022-23:55:15)»*/
14180
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (04/12/2022-00:10:35)»*/
14181
14181
  /*-----------------------------------------------------------------------------*/
14182
14182
 
14183
14183
 
@@ -14552,8 +14552,8 @@ WebsocketImplementation={
14552
14552
 
14553
14553
  // With «ws» library we have no choive than register message events inside a «connection» event !
14554
14554
 
14555
- // DBG
14556
- lognow("(SERVER) RECEIVED SOMETHING FROM CLIENT...", eventOrMessage.data);
14555
+ // // DBG
14556
+ // lognow("(SERVER) RECEIVED SOMETHING FROM CLIENT...", eventOrMessage.data);
14557
14557
 
14558
14558
  // dataWrapped=JSON.parse(dataWrapped);
14559
14559
  // dataWrapped=getAt(dataWrapped,0);// We get the root element
@@ -14562,9 +14562,9 @@ WebsocketImplementation={
14562
14562
  const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
14563
14563
 
14564
14564
 
14565
- // DBG
14566
- lognow("(SERVER) dataWrapped.channelName:",dataWrapped.channelName);
14567
- lognow("(SERVER) receptionEntryPoint.channelName:",receptionEntryPoint.channelName);
14565
+ // // DBG
14566
+ // lognow("(SERVER) dataWrapped.channelName:",dataWrapped.channelName);
14567
+ // lognow("(SERVER) receptionEntryPoint.channelName:",receptionEntryPoint.channelName);
14568
14568
 
14569
14569
 
14570
14570
  // Channel information is stored in exchanged data :
@@ -14613,6 +14613,9 @@ WebsocketImplementation={
14613
14613
 
14614
14614
  if(!clientSocketParam){
14615
14615
 
14616
+ // DBG
14617
+ lognow("(SERVER) (server sends to all clients)");
14618
+
14616
14619
  // TODO : FIXME : Use one single interface !
14617
14620
  let serverClients;
14618
14621
  if(!WebsocketImplementation.useSocketIOImplementation) serverClients=nodeServerInstance.serverSocket.clients;
@@ -14646,6 +14649,10 @@ WebsocketImplementation={
14646
14649
 
14647
14650
  }else{
14648
14651
 
14652
+ // DBG
14653
+ lognow("(SERVER) (server sends to a client)");
14654
+
14655
+
14649
14656
  // TODO : FIXME : Use one single interface !
14650
14657
  let clientSocket=clientSocketParam;
14651
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.320",
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)",