aotrautils-srv 0.0.286 → 0.0.288

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-19:03:43)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (27/11/2022-20:41:27)»*/
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-19:03:43)»*/
4830
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (27/11/2022-20:41:27)»*/
4831
4831
  /*-----------------------------------------------------------------------------*/
4832
4832
 
4833
4833
 
@@ -5205,7 +5205,7 @@ WebsocketImplementation={
5205
5205
 
5206
5206
 
5207
5207
  // DBG
5208
- lognow("(SERVER) RECEIVED SOMETHING FROM CLIENT : ",eventOrMessage);
5208
+ lognow("(SERVER) RECEIVED SOMETHING FROM CLIENT...");
5209
5209
 
5210
5210
  // dataWrapped=JSON.parse(dataWrapped);
5211
5211
  // dataWrapped=getAt(dataWrapped,0);// We get the root element
@@ -5213,6 +5213,11 @@ WebsocketImplementation={
5213
5213
 
5214
5214
  const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
5215
5215
 
5216
+
5217
+ // DBG
5218
+ lognow("(SERVER) dataWrapped.channelName:",dataWrapped.channelName);
5219
+ lognow("(SERVER) receptionEntryPoint.channelName:",receptionEntryPoint.channelName);
5220
+
5216
5221
 
5217
5222
  // Channel information is stored in exchanged data :
5218
5223
  if(dataWrapped.channelName!==receptionEntryPoint.channelName) return;
@@ -5224,7 +5229,12 @@ WebsocketImplementation={
5224
5229
 
5225
5230
  // TODO : FIXME : Use one single interface !
5226
5231
  // Room information is stored in client socket object :
5227
- 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;
5228
5238
 
5229
5239
  doOnIncomingMessage(dataWrapped.data, clientSocket);
5230
5240
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.286",
3
+ "version": "0.0.288",
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)",