aotrautils 0.0.320 → 0.0.322
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 -12
- 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 (
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (04/12/2022-00:21:26)»*/
|
|
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 (
|
|
4830
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (04/12/2022-00:21:26)»*/
|
|
4831
4831
|
/*-----------------------------------------------------------------------------*/
|
|
4832
4832
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
4833
4833
|
*
|
|
@@ -12949,7 +12949,7 @@ createOritaMicroClient=function(url, port, isNode=false){
|
|
|
12949
12949
|
};
|
|
12950
12950
|
|
|
12951
12951
|
|
|
12952
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (
|
|
12952
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (04/12/2022-00:21:26)»*/
|
|
12953
12953
|
/*-----------------------------------------------------------------------------*/
|
|
12954
12954
|
|
|
12955
12955
|
|
|
@@ -14177,7 +14177,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14177
14177
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14178
14178
|
|
|
14179
14179
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14180
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
|
14180
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (04/12/2022-00:21:26)»*/
|
|
14181
14181
|
/*-----------------------------------------------------------------------------*/
|
|
14182
14182
|
|
|
14183
14183
|
|
|
@@ -14478,9 +14478,6 @@ WebsocketImplementation={
|
|
|
14478
14478
|
|
|
14479
14479
|
const eventOrMessage=(!WebsocketImplementation.useSocketIOImplementation?eventOrMessageParam.data:eventOrMessageParam);
|
|
14480
14480
|
|
|
14481
|
-
// DBG
|
|
14482
|
-
lognow("REFINED : eventOrMessage",eventOrMessage);
|
|
14483
|
-
|
|
14484
14481
|
let dataResult=eventOrMessage;
|
|
14485
14482
|
|
|
14486
14483
|
try{
|
|
@@ -14552,8 +14549,8 @@ WebsocketImplementation={
|
|
|
14552
14549
|
|
|
14553
14550
|
// With «ws» library we have no choive than register message events inside a «connection» event !
|
|
14554
14551
|
|
|
14555
|
-
|
|
14556
|
-
|
|
14552
|
+
// // DBG
|
|
14553
|
+
// lognow("(SERVER) RECEIVED SOMETHING FROM CLIENT...", eventOrMessage.data);
|
|
14557
14554
|
|
|
14558
14555
|
// dataWrapped=JSON.parse(dataWrapped);
|
|
14559
14556
|
// dataWrapped=getAt(dataWrapped,0);// We get the root element
|
|
@@ -14562,9 +14559,9 @@ WebsocketImplementation={
|
|
|
14562
14559
|
const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
|
|
14563
14560
|
|
|
14564
14561
|
|
|
14565
|
-
|
|
14566
|
-
|
|
14567
|
-
|
|
14562
|
+
// // DBG
|
|
14563
|
+
// lognow("(SERVER) dataWrapped.channelName:",dataWrapped.channelName);
|
|
14564
|
+
// lognow("(SERVER) receptionEntryPoint.channelName:",receptionEntryPoint.channelName);
|
|
14568
14565
|
|
|
14569
14566
|
|
|
14570
14567
|
// Channel information is stored in exchanged data :
|
|
@@ -14613,6 +14610,9 @@ WebsocketImplementation={
|
|
|
14613
14610
|
|
|
14614
14611
|
if(!clientSocketParam){
|
|
14615
14612
|
|
|
14613
|
+
// DBG
|
|
14614
|
+
lognow("(SERVER) (server sends to all clients)");
|
|
14615
|
+
|
|
14616
14616
|
// TODO : FIXME : Use one single interface !
|
|
14617
14617
|
let serverClients;
|
|
14618
14618
|
if(!WebsocketImplementation.useSocketIOImplementation) serverClients=nodeServerInstance.serverSocket.clients;
|
|
@@ -14646,6 +14646,10 @@ WebsocketImplementation={
|
|
|
14646
14646
|
|
|
14647
14647
|
}else{
|
|
14648
14648
|
|
|
14649
|
+
// DBG
|
|
14650
|
+
lognow("(SERVER) (server sends to a client)");
|
|
14651
|
+
|
|
14652
|
+
|
|
14649
14653
|
// TODO : FIXME : Use one single interface !
|
|
14650
14654
|
let clientSocket=clientSocketParam;
|
|
14651
14655
|
if(!WebsocketImplementation.useSocketIOImplementation) if(clientSocket.readyState!==WebSocket.OPEN) return;
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.322",
|
|
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)",
|