aotrautils-srv 0.0.445 → 0.0.446

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 (23/01/2023-23:15:47)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (25/01/2023-00:56:13)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4864,7 +4864,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4864
4864
 
4865
4865
 
4866
4866
 
4867
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (23/01/2023-23:15:47)»*/
4867
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (25/01/2023-00:56:13)»*/
4868
4868
  /*-----------------------------------------------------------------------------*/
4869
4869
 
4870
4870
 
@@ -5229,6 +5229,7 @@ WebsocketImplementation={
5229
5229
  clientPingIntervalMillis:5000,
5230
5230
  // clientsSockets:[],
5231
5231
  serverSocket:serverSocket,
5232
+
5232
5233
  receptionEntryPoints:[],
5233
5234
 
5234
5235
  receive:(channelNameParam, doOnIncomingMessage, clientsRoomsTag=null)=>{
@@ -5387,16 +5388,18 @@ WebsocketImplementation={
5387
5388
  // if(contains(nodeServerInstance.clientsSockets, clientSocket)) return;
5388
5389
  // nodeServerInstance.clientsSockets.push(clientSocket);
5389
5390
 
5391
+
5392
+ // CURRENT :
5393
+ // NOT GOOD :
5394
+
5390
5395
  const clientId=getUUID();
5391
5396
  clientSocket.clientId=clientId;
5392
5397
 
5393
5398
  const doOnMessage=(eventOrMessage)=>{
5394
-
5395
5399
  // We execute the events registration listeners entry points:
5396
5400
  foreach(nodeServerInstance.receptionEntryPoints,(receptionEntryPoint,i)=>{
5397
5401
  receptionEntryPoint.execute(eventOrMessage, clientSocket, clientId);
5398
5402
  });
5399
-
5400
5403
  };
5401
5404
 
5402
5405
  if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.addEventListener("message", doOnMessage);
@@ -5421,6 +5424,7 @@ WebsocketImplementation={
5421
5424
  // On today, this method is named as same for the two implementations :
5422
5425
  // TRACE
5423
5426
  lognow("(SERVER) Removing all listeners for client socket «"+clientSocket.clientId+"».");
5427
+
5424
5428
  clientSocket.removeAllListeners();
5425
5429
 
5426
5430
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.445",
3
+ "version": "0.0.446",
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)",