aotrautils-srv 0.0.755 → 0.0.757

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 (10/02/2024-01:41:45)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (10/02/2024-01:54:48)»*/
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 (10/02/2024-01:41:45)»*/
5170
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (10/02/2024-01:54:48)»*/
5171
5171
  /*-----------------------------------------------------------------------------*/
5172
5172
 
5173
5173
 
@@ -5542,12 +5542,14 @@ WebsocketImplementation={
5542
5542
 
5543
5543
  // clientsSockets:[],
5544
5544
  serverSocket:serverSocket,
5545
+ listenableServer:listenableServer,
5545
5546
 
5546
5547
  receptionEntryPoints:[],
5547
5548
 
5548
5549
  close:(doOnCloseServer)=>{
5549
- nodeServerInstance.serverSocket?.close();
5550
- if(doOnCloseServer) doOnCloseServer();
5550
+ nodeServerInstance.serverSocket?.close(()=>{
5551
+ nodeServerInstance.listenableServer?.close(doOnCloseServer);
5552
+ });
5551
5553
  },
5552
5554
 
5553
5555
  receive:(channelNameParam, doOnIncomingMessage, clientsRoomsTag=null)=>{
@@ -6423,6 +6425,9 @@ launchNodeHTTPServer=function(port, doOnConnect=null, doOnFinalizeServer=null, /
6423
6425
  console.log("INFO : SERVER : HTTP Server launched and listening on port " + port + "!");
6424
6426
  listenableServer=httpServer;
6425
6427
  }
6428
+
6429
+ // DBG
6430
+ lognow("---------------listenableServer:",listenableServer);
6426
6431
 
6427
6432
 
6428
6433
  const server=WebsocketImplementation.getStatic(true).getServer(listenableServer);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.755",
3
+ "version": "0.0.757",
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)",