aotrautils 0.0.290 → 0.0.292
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.
- aotrautils/aotrautils.build.js +16 -6
- aotrautils/package.json +1 -1
aotrautils/aotrautils.build.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (27/11/2022-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (27/11/2022-20:41:22)»*/
|
|
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-
|
|
4830
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (27/11/2022-20:41:22)»*/
|
|
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-
|
|
12951
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (27/11/2022-20:41:22)»*/
|
|
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-
|
|
14179
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (27/11/2022-20:41:22)»*/
|
|
14180
14180
|
/*-----------------------------------------------------------------------------*/
|
|
14181
14181
|
|
|
14182
14182
|
|
|
@@ -14554,7 +14554,7 @@ WebsocketImplementation={
|
|
|
14554
14554
|
|
|
14555
14555
|
|
|
14556
14556
|
// DBG
|
|
14557
|
-
lognow("(SERVER) RECEIVED SOMETHING FROM CLIENT
|
|
14557
|
+
lognow("(SERVER) RECEIVED SOMETHING FROM CLIENT...");
|
|
14558
14558
|
|
|
14559
14559
|
// dataWrapped=JSON.parse(dataWrapped);
|
|
14560
14560
|
// dataWrapped=getAt(dataWrapped,0);// We get the root element
|
|
@@ -14562,6 +14562,11 @@ WebsocketImplementation={
|
|
|
14562
14562
|
|
|
14563
14563
|
const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
|
|
14564
14564
|
|
|
14565
|
+
|
|
14566
|
+
// DBG
|
|
14567
|
+
lognow("(SERVER) dataWrapped.channelName:",dataWrapped.channelName);
|
|
14568
|
+
lognow("(SERVER) receptionEntryPoint.channelName:",receptionEntryPoint.channelName);
|
|
14569
|
+
|
|
14565
14570
|
|
|
14566
14571
|
// Channel information is stored in exchanged data :
|
|
14567
14572
|
if(dataWrapped.channelName!==receptionEntryPoint.channelName) return;
|
|
@@ -14573,7 +14578,12 @@ WebsocketImplementation={
|
|
|
14573
14578
|
|
|
14574
14579
|
// TODO : FIXME : Use one single interface !
|
|
14575
14580
|
// Room information is stored in client socket object :
|
|
14576
|
-
|
|
14581
|
+
const isClientInRoom=WebsocketImplementation.isInRoom(clientSocket, receptionEntryPoint.clientsRoomsTag);
|
|
14582
|
+
|
|
14583
|
+
// DBG
|
|
14584
|
+
lognow("(SERVER) isClientInRoom:",isClientInRoom);
|
|
14585
|
+
|
|
14586
|
+
if(!isClientInRoom) return;
|
|
14577
14587
|
|
|
14578
14588
|
doOnIncomingMessage(dataWrapped.data, clientSocket);
|
|
14579
14589
|
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.292",
|
|
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)",
|