aotrautils-srv 0.0.749 → 0.0.751

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-srv/README.md CHANGED
@@ -24,8 +24,6 @@ https://alqemia.com
24
24
  ## Usage
25
25
  `require("aotrautils-srv");`
26
26
 
27
- ## Tests
28
- Tested with a dedicated yesbot server. TODO : <add public yesbot brian results URL>
29
27
 
30
28
  ## Contributing
31
29
  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:23)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (10/02/2024-01:07:25)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5167,7 +5167,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5167
5167
 
5168
5168
 
5169
5169
 
5170
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (30/01/2024-18:39:23)»*/
5170
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (10/02/2024-01:07:25)»*/
5171
5171
  /*-----------------------------------------------------------------------------*/
5172
5172
 
5173
5173
 
@@ -5369,9 +5369,6 @@ getServerParams=function(portParam=null, certPathParam=null, keyPathParam=null,
5369
5369
  else if(i==argsOffset+4) argCLKeyPath=val;
5370
5370
  });
5371
5371
 
5372
- // DBG
5373
- console.log(">>>>>>>>>>>>>>>>>argsOffset:",argsOffset);
5374
-
5375
5372
  // Console, command-line arguments OVERRIDE parameters values :
5376
5373
 
5377
5374
  result.port=nonull(argCLPort,portParam);
@@ -5524,7 +5521,7 @@ WebsocketImplementation={
5524
5521
  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 !!!");
5525
5522
  }
5526
5523
 
5527
- // Setting up the disctonnect event :
5524
+ // Setting up the disconnect event for a client :
5528
5525
  serverSocket.on("endConnection",()=>{
5529
5526
  serverSocket.disconnect();
5530
5527
  });
@@ -5543,11 +5540,15 @@ WebsocketImplementation={
5543
5540
  return nodeServerInstance;
5544
5541
  },
5545
5542
 
5546
- // clientsSockets:[],
5543
+ // clientsSockets:[],
5547
5544
  serverSocket:serverSocket,
5548
5545
 
5549
5546
  receptionEntryPoints:[],
5550
5547
 
5548
+ close:()=>{
5549
+ this.serverSocket?.close();
5550
+ },
5551
+
5551
5552
  receive:(channelNameParam, doOnIncomingMessage, clientsRoomsTag=null)=>{
5552
5553
 
5553
5554
  // DBG
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.749",
3
+ "version": "0.0.751",
4
4
  "main": "aotrautils-srv.build.js",
5
5
  "description": "A library for vanilla javascript utils (server-side) used in aotra javascript CMS",
6
6
  "author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",