aotrautils 0.0.234 → 0.0.237

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_29072022-2359 (30/07/2022-13:26:36)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (30/07/2022-14:17: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 (30/07/2022-13:26:36)»*/
4830
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (30/07/2022-14:17: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 (30/07/2022-13:26:36)»*/
11679
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (30/07/2022-14:17:09)»*/
11680
11680
  /*-----------------------------------------------------------------------------*/
11681
11681
 
11682
11682
 
@@ -12881,7 +12881,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
12881
12881
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
12882
12882
 
12883
12883
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
12884
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (30/07/2022-13:26:36)»*/
12884
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (30/07/2022-14:17:09)»*/
12885
12885
  /*-----------------------------------------------------------------------------*/
12886
12886
 
12887
12887
 
@@ -13550,13 +13550,13 @@ WebsocketImplementation={
13550
13550
 
13551
13551
  // OLD SYNTAX: clientSocket=Socket.connect(serverURL + ":" + port,{timeout: timeout, secure: isSecure});
13552
13552
  // NO : clientSocket=new Socket.Client(serverURL + ":" + port,{timeout: timeout, secure: isSecure});
13553
- clientSocket=io(serverURL + ":" + port,{timeout: timeout, secure: isSecure});
13554
-
13553
+ clientSocket=io(serverURL + ":" + port,{timeout: timeout, secure: isSecure, autoConnect:true});
13554
+ // DOES NOT WORK : clientSocket.connect();
13555
13555
  }
13556
13556
  }
13557
13557
 
13558
13558
  // DBG
13559
- lognow("DEBUG : CLIENT : clientSocket created:",clientSocket);
13559
+ lognow("DEBUG : CLIENT : clientSocket created:"+clientSocket.connected);
13560
13560
 
13561
13561
 
13562
13562
  // NODE CLIENT INSTANCE :
@@ -13654,6 +13654,9 @@ WebsocketImplementation={
13654
13654
 
13655
13655
  onConnectionToServer:(doOnConnection)=>{
13656
13656
 
13657
+ // DBG
13658
+ lognow("DEBUG : CLIENT : setting up onConnectionToServer.");
13659
+
13657
13660
  const doAllOnConnection=()=>{
13658
13661
 
13659
13662
  // To avoid triggering this event several times, depending on the implementation :
@@ -13662,6 +13665,7 @@ WebsocketImplementation={
13662
13665
 
13663
13666
  const clientSocket=nodeClientInstance.clientSocket;
13664
13667
 
13668
+
13665
13669
  // DBG
13666
13670
  lognow("DEBUG : CLIENT : doOnConnection !");
13667
13671
 
@@ -13675,11 +13679,17 @@ WebsocketImplementation={
13675
13679
 
13676
13680
 
13677
13681
  };
13682
+
13678
13683
 
13679
13684
  if(!WebsocketImplementation.useSocketIOImplementation) nodeClientInstance.clientSocket.addEventListener("open",doAllOnConnection);
13680
13685
  else nodeClientInstance.clientSocket.on("connect",doAllOnConnection);
13681
13686
 
13682
13687
 
13688
+ // DBG
13689
+ lognow("DEBUG : CLIENT : nodeClientInstance.clientSocket.on(connect)");
13690
+
13691
+
13692
+
13683
13693
  },
13684
13694
 
13685
13695
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.234",
3
+ "version": "0.0.237",
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)",