aotrautils 0.0.295 → 0.0.296
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (27/11/2022-22:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (27/11/2022-22:25:48)»*/
|
|
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-22:
|
|
4830
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (27/11/2022-22:25:48)»*/
|
|
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-22:
|
|
12951
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (27/11/2022-22:25:48)»*/
|
|
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-22:
|
|
14179
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (27/11/2022-22:25:48)»*/
|
|
14180
14180
|
/*-----------------------------------------------------------------------------*/
|
|
14181
14181
|
|
|
14182
14182
|
|
|
@@ -14574,12 +14574,11 @@ WebsocketImplementation={
|
|
|
14574
14574
|
if(dataWrapped.channelName!==receptionEntryPoint.channelName) return;
|
|
14575
14575
|
|
|
14576
14576
|
|
|
14577
|
-
const clientSocket=clientSocketParam;
|
|
14578
14577
|
|
|
14579
14578
|
|
|
14580
14579
|
// TODO : FIXME : Use one single interface !
|
|
14581
14580
|
// Room information is stored in client socket object :
|
|
14582
|
-
const isClientInRoom=WebsocketImplementation.isInRoom(
|
|
14581
|
+
const isClientInRoom=WebsocketImplementation.isInRoom(clientSocketParam, receptionEntryPoint.clientsRoomsTag);
|
|
14583
14582
|
|
|
14584
14583
|
// DBG
|
|
14585
14584
|
lognow("(SERVER) isClientInRoom:",isClientInRoom);
|
|
@@ -14588,7 +14587,7 @@ WebsocketImplementation={
|
|
|
14588
14587
|
|
|
14589
14588
|
// DBG
|
|
14590
14589
|
lognow("(SERVER) doOnIncomingMessage:",doOnIncomingMessage);
|
|
14591
|
-
if(doOnIncomingMessage) doOnIncomingMessage(dataWrapped.data,
|
|
14590
|
+
if(doOnIncomingMessage) doOnIncomingMessage(dataWrapped.data, clientSocketParam);
|
|
14592
14591
|
|
|
14593
14592
|
|
|
14594
14593
|
},
|
|
@@ -14711,8 +14710,8 @@ WebsocketImplementation={
|
|
|
14711
14710
|
};
|
|
14712
14711
|
|
|
14713
14712
|
|
|
14714
|
-
if(!WebsocketImplementation.useSocketIOImplementation)
|
|
14715
|
-
else
|
|
14713
|
+
if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.addEventListener("message", doOnMessage);
|
|
14714
|
+
else clientSocket.on(channelName, doOnMessage);
|
|
14716
14715
|
|
|
14717
14716
|
|
|
14718
14717
|
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.296",
|
|
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)",
|