aotrautils-srv 0.0.291 → 0.0.292

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-22:11:00)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (27/11/2022-22:25:51)»*/
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-22:11:00)»*/
4830
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (27/11/2022-22:25:51)»*/
4831
4831
  /*-----------------------------------------------------------------------------*/
4832
4832
 
4833
4833
 
@@ -5225,12 +5225,11 @@ WebsocketImplementation={
5225
5225
  if(dataWrapped.channelName!==receptionEntryPoint.channelName) return;
5226
5226
 
5227
5227
 
5228
- const clientSocket=clientSocketParam;
5229
5228
 
5230
5229
 
5231
5230
  // TODO : FIXME : Use one single interface !
5232
5231
  // Room information is stored in client socket object :
5233
- const isClientInRoom=WebsocketImplementation.isInRoom(clientSocket, receptionEntryPoint.clientsRoomsTag);
5232
+ const isClientInRoom=WebsocketImplementation.isInRoom(clientSocketParam, receptionEntryPoint.clientsRoomsTag);
5234
5233
 
5235
5234
  // DBG
5236
5235
  lognow("(SERVER) isClientInRoom:",isClientInRoom);
@@ -5239,7 +5238,7 @@ WebsocketImplementation={
5239
5238
 
5240
5239
  // DBG
5241
5240
  lognow("(SERVER) doOnIncomingMessage:",doOnIncomingMessage);
5242
- if(doOnIncomingMessage) doOnIncomingMessage(dataWrapped.data, clientSocket);
5241
+ if(doOnIncomingMessage) doOnIncomingMessage(dataWrapped.data, clientSocketParam);
5243
5242
 
5244
5243
 
5245
5244
  },
@@ -5362,8 +5361,8 @@ WebsocketImplementation={
5362
5361
  };
5363
5362
 
5364
5363
 
5365
- if(!WebsocketImplementation.useSocketIOImplementation) clientSocketParam.addEventListener("message", doOnMessage);
5366
- else clientSocketParam.on(channelName, doOnMessage);
5364
+ if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.addEventListener("message", doOnMessage);
5365
+ else clientSocket.on(channelName, doOnMessage);
5367
5366
 
5368
5367
 
5369
5368
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.291",
3
+ "version": "0.0.292",
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)",