aotrautils-srv 0.0.287 → 0.0.289

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 (27/11/2022-20:12:33)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (27/11/2022-21:01:59)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4827,7 +4827,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4827
4827
 
4828
4828
 
4829
4829
 
4830
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (27/11/2022-20:12:33)»*/
4830
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (27/11/2022-21:01:59)»*/
4831
4831
  /*-----------------------------------------------------------------------------*/
4832
4832
 
4833
4833
 
@@ -5229,7 +5229,15 @@ WebsocketImplementation={
5229
5229
 
5230
5230
  // TODO : FIXME : Use one single interface !
5231
5231
  // Room information is stored in client socket object :
5232
- if(!WebsocketImplementation.isInRoom(clientSocket, receptionEntryPoint.clientsRoomsTag)) return;
5232
+ const isClientInRoom=WebsocketImplementation.isInRoom(clientSocket, receptionEntryPoint.clientsRoomsTag);
5233
+
5234
+ // DBG
5235
+ lognow("(SERVER) isClientInRoom:",isClientInRoom);
5236
+
5237
+ if(!isClientInRoom) return;
5238
+
5239
+ // DBG
5240
+ lognow("(SERVER) doOnIncomingMessage:",doOnIncomingMessage);
5233
5241
 
5234
5242
  doOnIncomingMessage(dataWrapped.data, clientSocket);
5235
5243
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.287",
3
+ "version": "0.0.289",
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)",