aotrautils 0.0.287 → 0.0.289

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 (26/11/2022-19:42:56)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (27/11/2022-03:05:53)»*/
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 (26/11/2022-19:42:56)»*/
4830
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (27/11/2022-03:05:53)»*/
4831
4831
  /*-----------------------------------------------------------------------------*/
4832
4832
  /* ## Utility global methods in a browser (htmljs) client environment.
4833
4833
  *
@@ -12948,7 +12948,7 @@ createOritaMicroClient=function(url, port, isNode=false){
12948
12948
  };
12949
12949
 
12950
12950
 
12951
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (26/11/2022-19:42:56)»*/
12951
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (27/11/2022-03:05:53)»*/
12952
12952
  /*-----------------------------------------------------------------------------*/
12953
12953
 
12954
12954
 
@@ -14176,7 +14176,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14176
14176
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14177
14177
 
14178
14178
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14179
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (26/11/2022-19:42:56)»*/
14179
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (27/11/2022-03:05:53)»*/
14180
14180
  /*-----------------------------------------------------------------------------*/
14181
14181
 
14182
14182
 
@@ -14548,27 +14548,31 @@ WebsocketImplementation={
14548
14548
 
14549
14549
  // TODO : Find a way to remove this !
14550
14550
  const doOnMessage=(eventOrMessage)=>{
14551
+
14552
+
14553
+ // DBG
14554
+ lognow("(SERVER) RECEIVED SOMETHING FROM CLIENT : ",eventOrMessage);
14555
+
14556
+ // dataWrapped=JSON.parse(dataWrapped);
14557
+ // dataWrapped=getAt(dataWrapped,0);// We get the root element
14558
+
14559
+
14560
+ const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
14551
14561
 
14552
- // dataWrapped=JSON.parse(dataWrapped);
14553
- // dataWrapped=getAt(dataWrapped,0);// We get the root element
14554
-
14555
-
14556
- const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
14557
-
14558
-
14559
- // Channel information is stored in exchanged data :
14560
- if(dataWrapped.channelName!==receptionEntryPoint.channelName) return;
14561
-
14562
-
14563
- const clientSocket=clientSocketParam;
14564
-
14565
-
14566
-
14567
- // TODO : FIXME : Use one single interface !
14568
- // Room information is stored in client socket object :
14569
- if(!WebsocketImplementation.isInRoom(clientSocket, receptionEntryPoint.clientsRoomsTag)) return;
14570
-
14571
- doOnIncomingMessage(dataWrapped.data, clientSocket);
14562
+
14563
+ // Channel information is stored in exchanged data :
14564
+ if(dataWrapped.channelName!==receptionEntryPoint.channelName) return;
14565
+
14566
+
14567
+ const clientSocket=clientSocketParam;
14568
+
14569
+
14570
+
14571
+ // TODO : FIXME : Use one single interface !
14572
+ // Room information is stored in client socket object :
14573
+ if(!WebsocketImplementation.isInRoom(clientSocket, receptionEntryPoint.clientsRoomsTag)) return;
14574
+
14575
+ doOnIncomingMessage(dataWrapped.data, clientSocket);
14572
14576
 
14573
14577
  };
14574
14578
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.287",
3
+ "version": "0.0.289",
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)",