aotrautils 0.0.240 → 0.0.243

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 (02/08/2022-02:24:51)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (02/08/2022-02:40:00)»*/
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 (02/08/2022-02:24:51)»*/
4830
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (02/08/2022-02:40:00)»*/
4831
4831
  /*-----------------------------------------------------------------------------*/
4832
4832
  /* ## Utility global methods in a browser (htmljs) client environment.
4833
4833
  *
@@ -11329,7 +11329,7 @@ function getPointsFromSVGDString(str){
11329
11329
  // -Client :
11330
11330
 
11331
11331
  // TODO : Use everywhere it's applicable !
11332
- initClient=function(isNodeContext=true, useSocketIOImplementation=/*DEBUG*/true, doOnServerConnection=null, url, /*OPTIONAL*/port=25000, isSecure=true, /*OPTIONAL*/timeout=10000, /*OPTIONAL*/selfParam=null){
11332
+ initClient=function(isNodeContext=true, useSocketIOImplementation=/*DEBUG*/false, doOnServerConnection=null, url, /*OPTIONAL*/port=25000, isSecure=true, /*OPTIONAL*/timeout=10000, /*OPTIONAL*/selfParam=null){
11333
11333
  let aotraClient={};
11334
11334
 
11335
11335
  aotraClient.client={};
@@ -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 (02/08/2022-02:24:51)»*/
11679
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (02/08/2022-02:40:00)»*/
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 (02/08/2022-02:24:51)»*/
12884
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (02/08/2022-02:40:00)»*/
12885
12885
  /*-----------------------------------------------------------------------------*/
12886
12886
 
12887
12887
 
@@ -13113,7 +13113,7 @@ WebsocketImplementation={
13113
13113
  //
13114
13114
  // CONSOLE NODE SERVER/CLIENT
13115
13115
  //
13116
- getStatic:(isNodeContext=true, useSocketIOImplementation=/*DEBUG*/true)=>{
13116
+ getStatic:(isNodeContext=true, useSocketIOImplementation=/*DEBUG*/false)=>{
13117
13117
 
13118
13118
  WebsocketImplementation.isNodeContext=isNodeContext;
13119
13119
  WebsocketImplementation.useSocketIOImplementation=useSocketIOImplementation;
@@ -13210,15 +13210,15 @@ WebsocketImplementation={
13210
13210
  serverSocket=new WebSocket.Server({ "server":listenableServer });
13211
13211
  }else{
13212
13212
 
13213
-
13214
13213
  // NOW : socket.io :
13215
13214
  // Loading socket.io
13216
13215
  // OLD SYNTAX : serverSocket=Socket.listen(listenableServer);
13217
13216
  serverSocket=new Socket.Server(listenableServer);
13218
13217
 
13219
- // TRACE :
13220
- lognow("WARN : CAUTION ! ON TODAY (01/08/2022) socket.io SERVER LIBRARY IS BOGUS AND WON'T WORK (node clients can't connect !!) IF listenableServer IS A https SERVER !!!");
13221
- lognow("listenableServer:",listenableServer);
13218
+ if(listenableServer.cert || listenableServer.key){
13219
+ // TRACE :
13220
+ lognow("WARN : CAUTION ! ON TODAY (01/08/2022) socket.io SERVER LIBRARY IS BOGUS AND WON'T WORK (node clients can't connect !!) IF listenableServer IS A https SERVER !!!");
13221
+ }
13222
13222
 
13223
13223
  // Setting up the disctonnect event :
13224
13224
  serverSocket.on("endConnection",()=>{
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.240",
3
+ "version": "0.0.243",
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)",