aotrautils 0.0.757 → 0.0.759

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/README.md CHANGED
@@ -23,8 +23,6 @@ https://alqemia.com
23
23
  ## Usage
24
24
  `require("aotrautils");`
25
25
 
26
- ## Tests
27
- Tested with a dedicated yesbot server. TODO : <add public yesbot brian results URL>
28
26
 
29
27
  ## Contributing
30
28
  At maintainer's discretion.
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- /*utils COMMONS library associated with aotra version : «1_29072022-2359 (30/01/2024-18:39:09)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (10/02/2024-01:07:19)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5167,7 +5167,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5167
5167
 
5168
5168
 
5169
5169
 
5170
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (30/01/2024-18:39:09)»*/
5170
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (10/02/2024-01:07:19)»*/
5171
5171
  /*-----------------------------------------------------------------------------*/
5172
5172
  /* ## Utility global methods in a browser (htmljs) client environment.
5173
5173
  *
@@ -13380,7 +13380,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
13380
13380
 
13381
13381
 
13382
13382
 
13383
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (30/01/2024-18:39:09)»*/
13383
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (10/02/2024-01:07:19)»*/
13384
13384
  /*-----------------------------------------------------------------------------*/
13385
13385
 
13386
13386
 
@@ -14619,7 +14619,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14619
14619
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14620
14620
 
14621
14621
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14622
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (30/01/2024-18:39:09)»*/
14622
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (10/02/2024-01:07:19)»*/
14623
14623
  /*-----------------------------------------------------------------------------*/
14624
14624
 
14625
14625
 
@@ -14821,9 +14821,6 @@ getServerParams=function(portParam=null, certPathParam=null, keyPathParam=null,
14821
14821
  else if(i==argsOffset+4) argCLKeyPath=val;
14822
14822
  });
14823
14823
 
14824
- // DBG
14825
- console.log(">>>>>>>>>>>>>>>>>argsOffset:",argsOffset);
14826
-
14827
14824
  // Console, command-line arguments OVERRIDE parameters values :
14828
14825
 
14829
14826
  result.port=nonull(argCLPort,portParam);
@@ -14976,7 +14973,7 @@ WebsocketImplementation={
14976
14973
  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 !!!");
14977
14974
  }
14978
14975
 
14979
- // Setting up the disctonnect event :
14976
+ // Setting up the disconnect event for a client :
14980
14977
  serverSocket.on("endConnection",()=>{
14981
14978
  serverSocket.disconnect();
14982
14979
  });
@@ -14995,11 +14992,15 @@ WebsocketImplementation={
14995
14992
  return nodeServerInstance;
14996
14993
  },
14997
14994
 
14998
- // clientsSockets:[],
14995
+ // clientsSockets:[],
14999
14996
  serverSocket:serverSocket,
15000
14997
 
15001
14998
  receptionEntryPoints:[],
15002
14999
 
15000
+ close:()=>{
15001
+ this.serverSocket?.close();
15002
+ },
15003
+
15003
15004
  receive:(channelNameParam, doOnIncomingMessage, clientsRoomsTag=null)=>{
15004
15005
 
15005
15006
  // DBG
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.757",
3
+ "version": "0.0.759",
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)",