aotrautils-srv 0.0.315 → 0.0.317

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 (03/12/2022-22:26:49)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (04/12/2022-00:10:39)»*/
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 (03/12/2022-22:26:49)»*/
4830
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (04/12/2022-00:10:39)»*/
4831
4831
  /*-----------------------------------------------------------------------------*/
4832
4832
 
4833
4833
 
@@ -5202,8 +5202,8 @@ WebsocketImplementation={
5202
5202
 
5203
5203
  // With «ws» library we have no choive than register message events inside a «connection» event !
5204
5204
 
5205
- // DBG
5206
- lognow("(SERVER) RECEIVED SOMETHING FROM CLIENT...", eventOrMessage.data);
5205
+ // // DBG
5206
+ // lognow("(SERVER) RECEIVED SOMETHING FROM CLIENT...", eventOrMessage.data);
5207
5207
 
5208
5208
  // dataWrapped=JSON.parse(dataWrapped);
5209
5209
  // dataWrapped=getAt(dataWrapped,0);// We get the root element
@@ -5212,9 +5212,9 @@ WebsocketImplementation={
5212
5212
  const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
5213
5213
 
5214
5214
 
5215
- // DBG
5216
- lognow("(SERVER) dataWrapped.channelName:",dataWrapped.channelName);
5217
- lognow("(SERVER) receptionEntryPoint.channelName:",receptionEntryPoint.channelName);
5215
+ // // DBG
5216
+ // lognow("(SERVER) dataWrapped.channelName:",dataWrapped.channelName);
5217
+ // lognow("(SERVER) receptionEntryPoint.channelName:",receptionEntryPoint.channelName);
5218
5218
 
5219
5219
 
5220
5220
  // Channel information is stored in exchanged data :
@@ -5263,6 +5263,9 @@ WebsocketImplementation={
5263
5263
 
5264
5264
  if(!clientSocketParam){
5265
5265
 
5266
+ // DBG
5267
+ lognow("(SERVER) (server sends to all clients)");
5268
+
5266
5269
  // TODO : FIXME : Use one single interface !
5267
5270
  let serverClients;
5268
5271
  if(!WebsocketImplementation.useSocketIOImplementation) serverClients=nodeServerInstance.serverSocket.clients;
@@ -5296,6 +5299,10 @@ WebsocketImplementation={
5296
5299
 
5297
5300
  }else{
5298
5301
 
5302
+ // DBG
5303
+ lognow("(SERVER) (server sends to a client)");
5304
+
5305
+
5299
5306
  // TODO : FIXME : Use one single interface !
5300
5307
  let clientSocket=clientSocketParam;
5301
5308
  if(!WebsocketImplementation.useSocketIOImplementation) if(clientSocket.readyState!==WebSocket.OPEN) return;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.315",
3
+ "version": "0.0.317",
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)",