aotrautils 0.0.126 → 0.0.127

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.
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- /*utils COMMONS library associated with aotra version : «1.0.0.000 (16/07/2022-16:41:40)»*/
3
+ /*utils COMMONS library associated with aotra version : «1.0.0.000 (16/07/2022-16:48:44)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4828,7 +4828,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4828
4828
 
4829
4829
 
4830
4830
 
4831
- /*utils CLIENT library associated with aotra version : «1.0.0.000 (16/07/2022-16:41:40)»*/
4831
+ /*utils CLIENT library associated with aotra version : «1.0.0.000 (16/07/2022-16:48:44)»*/
4832
4832
  /*-----------------------------------------------------------------------------*/
4833
4833
  /* ## Utility global methods in a browser (htmljs) client environment.
4834
4834
  *
@@ -11678,7 +11678,7 @@ createFusrodaClient=function(doOnClientReady, doOnDataReception, urlParam=null,
11678
11678
 
11679
11679
 
11680
11680
 
11681
- /*utils GEOMETRY library associated with aotra version : «1.0.0.000 (16/07/2022-16:41:40)»*/
11681
+ /*utils GEOMETRY library associated with aotra version : «1.0.0.000 (16/07/2022-16:48:44)»*/
11682
11682
  /*-----------------------------------------------------------------------------*/
11683
11683
 
11684
11684
 
@@ -12884,7 +12884,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
12884
12884
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
12885
12885
 
12886
12886
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
12887
- /*utils SERVER library associated with aotra version : «1.0.0.000 (16/07/2022-16:41:40)»*/
12887
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (16/07/2022-16:48:44)»*/
12888
12888
  /*-----------------------------------------------------------------------------*/
12889
12889
 
12890
12890
 
@@ -13375,7 +13375,10 @@ WebsocketImplementation={
13375
13375
 
13376
13376
  clientSocket.isAlive=false;
13377
13377
  try{
13378
- clientSocket.ping();
13378
+
13379
+ if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.ping();
13380
+ else clientSocket.emit("ping");
13381
+
13379
13382
  }catch(error){
13380
13383
  lognow("ERROR : A problem occurred when tried to ping client socket : ",error);
13381
13384
  // We effectively end the client connection to this server :
@@ -13394,9 +13397,16 @@ WebsocketImplementation={
13394
13397
 
13395
13398
 
13396
13399
  }, nodeServerInstance.clientTimeoutMillis);
13397
- clientSocket.on("pong",()=>{
13398
- clientSocket.isAlive=true;
13399
- });
13400
+
13401
+ if(!WebsocketImplementation.useSocketIOImplementation){
13402
+ clientSocket.on("pong",()=>{
13403
+ clientSocket.isAlive=true;
13404
+ });
13405
+ }else{
13406
+ clientSocket.on("ping",()=>{
13407
+ clientSocket.isAlive=true;
13408
+ });
13409
+ }
13400
13410
 
13401
13411
 
13402
13412
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.126",
3
+ "version": "0.0.127",
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)",