aotrautils 0.0.288 → 0.0.290

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 (27/11/2022-02:44:36)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (27/11/2022-19:03:39)»*/
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 (27/11/2022-02:44:36)»*/
4830
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (27/11/2022-19:03:39)»*/
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 (27/11/2022-02:44:36)»*/
12951
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (27/11/2022-19:03:39)»*/
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 (27/11/2022-02:44:36)»*/
14179
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (27/11/2022-19:03:39)»*/
14180
14180
  /*-----------------------------------------------------------------------------*/
14181
14181
 
14182
14182
 
@@ -14477,6 +14477,9 @@ WebsocketImplementation={
14477
14477
 
14478
14478
  const eventOrMessage=(!WebsocketImplementation.useSocketIOImplementation?eventOrMessageParam.data:eventOrMessageParam);
14479
14479
 
14480
+ // DBG
14481
+ lognow("REFINED : eventOrMessage",eventOrMessage);
14482
+
14480
14483
  let dataResult=eventOrMessage;
14481
14484
 
14482
14485
  try{
@@ -14548,27 +14551,31 @@ WebsocketImplementation={
14548
14551
 
14549
14552
  // TODO : Find a way to remove this !
14550
14553
  const doOnMessage=(eventOrMessage)=>{
14554
+
14555
+
14556
+ // DBG
14557
+ lognow("(SERVER) RECEIVED SOMETHING FROM CLIENT : ",eventOrMessage);
14558
+
14559
+ // dataWrapped=JSON.parse(dataWrapped);
14560
+ // dataWrapped=getAt(dataWrapped,0);// We get the root element
14561
+
14562
+
14563
+ const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
14551
14564
 
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);
14565
+
14566
+ // Channel information is stored in exchanged data :
14567
+ if(dataWrapped.channelName!==receptionEntryPoint.channelName) return;
14568
+
14569
+
14570
+ const clientSocket=clientSocketParam;
14571
+
14572
+
14573
+
14574
+ // TODO : FIXME : Use one single interface !
14575
+ // Room information is stored in client socket object :
14576
+ if(!WebsocketImplementation.isInRoom(clientSocket, receptionEntryPoint.clientsRoomsTag)) return;
14577
+
14578
+ doOnIncomingMessage(dataWrapped.data, clientSocket);
14572
14579
 
14573
14580
  };
14574
14581
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.288",
3
+ "version": "0.0.290",
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)",