aotrautils 0.0.248 → 0.0.251
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 +39 -37
- 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 (19/08/2022-00:31:09)»*/
|
|
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 (19/08/2022-00:31:09)»*/
|
|
4831
4831
|
/*-----------------------------------------------------------------------------*/
|
|
4832
4832
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
4833
4833
|
*
|
|
@@ -11676,7 +11676,7 @@ createFusrodaClient=function(doOnClientReady, doOnDataReception, urlParam=null,
|
|
|
11676
11676
|
|
|
11677
11677
|
|
|
11678
11678
|
|
|
11679
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (
|
|
11679
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (19/08/2022-00:31:09)»*/
|
|
11680
11680
|
/*-----------------------------------------------------------------------------*/
|
|
11681
11681
|
|
|
11682
11682
|
|
|
@@ -12904,7 +12904,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
12904
12904
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
12905
12905
|
|
|
12906
12906
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
12907
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
|
12907
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (19/08/2022-00:31:09)»*/
|
|
12908
12908
|
/*-----------------------------------------------------------------------------*/
|
|
12909
12909
|
|
|
12910
12910
|
|
|
@@ -13316,8 +13316,8 @@ WebsocketImplementation={
|
|
|
13316
13316
|
nodeServerInstance.receptionEntryPoints.push(receptionEntryPoint);
|
|
13317
13317
|
|
|
13318
13318
|
|
|
13319
|
-
|
|
13320
|
-
|
|
13319
|
+
// // DBG
|
|
13320
|
+
// console.log("ADD RECEPTION ENTRY POINT channelName:«"+channelName+"»! nodeServerInstance.receptionEntryPoints.length:",nodeServerInstance.receptionEntryPoints.length);
|
|
13321
13321
|
|
|
13322
13322
|
|
|
13323
13323
|
return nodeServerInstance;
|
|
@@ -13450,32 +13450,33 @@ WebsocketImplementation={
|
|
|
13450
13450
|
|
|
13451
13451
|
clientSocket.isConnectionAlive=false;
|
|
13452
13452
|
|
|
13453
|
+
|
|
13454
|
+
if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.ping();
|
|
13453
13455
|
// OLD :
|
|
13454
|
-
// if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.ping();
|
|
13455
13456
|
// else clientSocket.emit("ping");
|
|
13456
|
-
|
|
13457
|
-
nodeServerInstance.send("protocol",{type:"ping"});
|
|
13457
|
+
else nodeServerInstance.send("protocol",{type:"ping"});
|
|
13458
13458
|
|
|
13459
13459
|
|
|
13460
13460
|
}, nodeServerInstance.clientPingIntervalMillis);
|
|
13461
13461
|
|
|
13462
13462
|
|
|
13463
|
+
if(!WebsocketImplementation.useSocketIOImplementation){
|
|
13464
|
+
clientSocket.on("pong",()=>{
|
|
13465
|
+
clientSocket.isConnectionAlive=true;
|
|
13466
|
+
});
|
|
13467
|
+
}else{
|
|
13463
13468
|
// // OLD :
|
|
13464
|
-
// if(!WebsocketImplementation.useSocketIOImplementation){
|
|
13465
|
-
// clientSocket.on("pong",()=>{
|
|
13466
|
-
// clientSocket.isConnectionAlive=true;
|
|
13467
|
-
// });
|
|
13468
|
-
// }else{
|
|
13469
13469
|
// clientSocket.on("ping",()=>{
|
|
13470
13470
|
// clientSocket.isConnectionAlive=true;
|
|
13471
13471
|
// });
|
|
13472
|
-
// }
|
|
13473
13472
|
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13473
|
+
nodeServerInstance.receive("protocol",(message)=>{
|
|
13474
|
+
if(message.type!=="pong") return;
|
|
13475
|
+
clientSocket.isConnectionAlive=true;
|
|
13476
|
+
});
|
|
13477
|
+
|
|
13478
|
+
}
|
|
13479
|
+
|
|
13479
13480
|
|
|
13480
13481
|
|
|
13481
13482
|
});
|
|
@@ -13717,14 +13718,15 @@ WebsocketImplementation={
|
|
|
13717
13718
|
|
|
13718
13719
|
|
|
13719
13720
|
|
|
13720
|
-
|
|
13721
|
-
|
|
13722
|
-
|
|
13723
|
-
|
|
13724
|
-
|
|
13725
|
-
|
|
13726
|
-
|
|
13727
|
-
|
|
13721
|
+
if(WebsocketImplementation.useSocketIOImplementation){
|
|
13722
|
+
nodeClientInstance.receive("protocol",(message)=>{
|
|
13723
|
+
if(message.type!=="ping") return;
|
|
13724
|
+
nodeClientInstance.send("protocol",{type:"pong"});
|
|
13725
|
+
|
|
13726
|
+
// DBG
|
|
13727
|
+
lognow("DEBUG : CLIENT : Pong sent.");
|
|
13728
|
+
});
|
|
13729
|
+
}
|
|
13728
13730
|
|
|
13729
13731
|
|
|
13730
13732
|
|
|
@@ -13862,15 +13864,15 @@ WebsocketImplementation={
|
|
|
13862
13864
|
|
|
13863
13865
|
|
|
13864
13866
|
|
|
13865
|
-
|
|
13866
|
-
|
|
13867
|
-
|
|
13868
|
-
|
|
13869
|
-
|
|
13870
|
-
|
|
13871
|
-
|
|
13872
|
-
|
|
13873
|
-
}
|
|
13867
|
+
if(WebsocketImplementation.useSocketIOImplementation){
|
|
13868
|
+
browserInstance.receive("protocol",(message)=>{
|
|
13869
|
+
if(message.type!=="ping") return;
|
|
13870
|
+
browserInstance.send("protocol",{type:"pong"});
|
|
13871
|
+
|
|
13872
|
+
// DBG
|
|
13873
|
+
lognow("DEBUG : CLIENT : Pong sent.");
|
|
13874
|
+
});
|
|
13875
|
+
}
|
|
13874
13876
|
|
|
13875
13877
|
|
|
13876
13878
|
return browserInstance;
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.251",
|
|
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)",
|