aotrautils 0.0.501 → 0.0.503
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 +34 -15
- 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 (05/02/2023-12:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (05/02/2023-12:43:51)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -4866,7 +4866,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4866
4866
|
|
|
4867
4867
|
|
|
4868
4868
|
|
|
4869
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (05/02/2023-12:
|
|
4869
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (05/02/2023-12:43:51)»*/
|
|
4870
4870
|
/*-----------------------------------------------------------------------------*/
|
|
4871
4871
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
4872
4872
|
*
|
|
@@ -12988,7 +12988,7 @@ createOritaMicroClient=function(url, port, isNode=false){
|
|
|
12988
12988
|
};
|
|
12989
12989
|
|
|
12990
12990
|
|
|
12991
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (05/02/2023-12:
|
|
12991
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (05/02/2023-12:43:51)»*/
|
|
12992
12992
|
/*-----------------------------------------------------------------------------*/
|
|
12993
12993
|
|
|
12994
12994
|
|
|
@@ -14216,7 +14216,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14216
14216
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14217
14217
|
|
|
14218
14218
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14219
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (05/02/2023-12:
|
|
14219
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (05/02/2023-12:43:51)»*/
|
|
14220
14220
|
/*-----------------------------------------------------------------------------*/
|
|
14221
14221
|
|
|
14222
14222
|
|
|
@@ -14618,18 +14618,12 @@ WebsocketImplementation={
|
|
|
14618
14618
|
const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
|
|
14619
14619
|
|
|
14620
14620
|
|
|
14621
|
-
// // DBG
|
|
14622
|
-
// lognow("(SERVER) dataWrapped.channelName:",dataWrapped.channelName);
|
|
14623
|
-
// lognow("(SERVER) receptionEntryPoint.channelName:",receptionEntryPoint.channelName);
|
|
14624
|
-
|
|
14625
|
-
|
|
14626
14621
|
// Channel information is stored in exchanged data :
|
|
14627
14622
|
if(dataWrapped.channelName!==receptionEntryPoint.channelName) return;
|
|
14628
14623
|
|
|
14629
14624
|
|
|
14630
|
-
// DBG
|
|
14631
|
-
lognow("(SERVER) ENTRY POINT IS OF THE RIGHT CHANNEL:", receptionEntryPoint.channelName);
|
|
14632
|
-
|
|
14625
|
+
// // DBG
|
|
14626
|
+
// lognow("(SERVER) ENTRY POINT IS OF THE RIGHT CHANNEL:", receptionEntryPoint.channelName);
|
|
14633
14627
|
|
|
14634
14628
|
|
|
14635
14629
|
// TODO : FIXME : Use one single interface !
|
|
@@ -14766,7 +14760,15 @@ WebsocketImplementation={
|
|
|
14766
14760
|
};
|
|
14767
14761
|
|
|
14768
14762
|
if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.addEventListener("message", doOnMessage);
|
|
14769
|
-
else
|
|
14763
|
+
else{
|
|
14764
|
+
// NO: else clientSocket.on("message", doOnMessage);
|
|
14765
|
+
foreach(nodeServerInstance.receptionEntryPoints,(receptionEntryPoint,i)=>{
|
|
14766
|
+
const channelName=receptionEntryPoint.channelName;
|
|
14767
|
+
clientSocket.on(channelName, (eventOrMessage)=>{
|
|
14768
|
+
receptionEntryPoint.execute(eventOrMessage, clientSocket);
|
|
14769
|
+
});
|
|
14770
|
+
});
|
|
14771
|
+
}
|
|
14770
14772
|
|
|
14771
14773
|
doOnConnection(nodeServerInstance, clientSocket);
|
|
14772
14774
|
|
|
@@ -15055,7 +15057,15 @@ WebsocketImplementation={
|
|
|
15055
15057
|
|
|
15056
15058
|
const clientSocket=nodeClientInstance.clientSocket;
|
|
15057
15059
|
if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.addEventListener("message", doOnMessage);
|
|
15058
|
-
else
|
|
15060
|
+
else{
|
|
15061
|
+
// NO: else clientSocket.on("message", doOnMessage);
|
|
15062
|
+
foreach(nodeClientInstance.receptionEntryPoints,(receptionEntryPoint,i)=>{
|
|
15063
|
+
const channelName=receptionEntryPoint.channelName;
|
|
15064
|
+
clientSocket.on(channelName, (eventOrMessage)=>{
|
|
15065
|
+
receptionEntryPoint.execute(eventOrMessage, clientSocket);
|
|
15066
|
+
});
|
|
15067
|
+
});
|
|
15068
|
+
}
|
|
15059
15069
|
|
|
15060
15070
|
doOnConnection(nodeClientInstance, clientSocket);
|
|
15061
15071
|
|
|
@@ -15290,7 +15300,16 @@ WebsocketImplementation={
|
|
|
15290
15300
|
|
|
15291
15301
|
const clientSocket=browserInstance.clientSocket;
|
|
15292
15302
|
if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.addEventListener("message", doOnMessage);
|
|
15293
|
-
else
|
|
15303
|
+
else{
|
|
15304
|
+
// NO: else clientSocket.on("message", doOnMessage);
|
|
15305
|
+
foreach(browserInstance.receptionEntryPoints,(receptionEntryPoint,i)=>{
|
|
15306
|
+
const channelName=receptionEntryPoint.channelName;
|
|
15307
|
+
clientSocket.on(channelName, (eventOrMessage)=>{
|
|
15308
|
+
receptionEntryPoint.execute(eventOrMessage, clientSocket);
|
|
15309
|
+
});
|
|
15310
|
+
});
|
|
15311
|
+
}
|
|
15312
|
+
|
|
15294
15313
|
|
|
15295
15314
|
doOnConnection(browserInstance, clientSocket);
|
|
15296
15315
|
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.503",
|
|
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)",
|