aotrautils 0.0.150 → 0.0.153

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.0.0.000 (17/07/2022-03:56:03)»*/
3
+ /*utils COMMONS library associated with aotra version : «1.0.0.000 (17/07/2022-04:07:54)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4828,7 +4828,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4828
4828
 
4829
4829
 
4830
4830
 
4831
- /*utils CLIENT library associated with aotra version : «1.0.0.000 (17/07/2022-03:56:03)»*/
4831
+ /*utils CLIENT library associated with aotra version : «1.0.0.000 (17/07/2022-04:07:54)»*/
4832
4832
  /*-----------------------------------------------------------------------------*/
4833
4833
  /* ## Utility global methods in a browser (htmljs) client environment.
4834
4834
  *
@@ -11678,7 +11678,7 @@ createFusrodaClient=function(doOnClientReady, doOnDataReception, urlParam=null,
11678
11678
 
11679
11679
 
11680
11680
 
11681
- /*utils GEOMETRY library associated with aotra version : «1.0.0.000 (17/07/2022-03:56:03)»*/
11681
+ /*utils GEOMETRY library associated with aotra version : «1.0.0.000 (17/07/2022-04:07:54)»*/
11682
11682
  /*-----------------------------------------------------------------------------*/
11683
11683
 
11684
11684
 
@@ -12884,7 +12884,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
12884
12884
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
12885
12885
 
12886
12886
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
12887
- /*utils SERVER library associated with aotra version : «1.0.0.000 (17/07/2022-03:56:03)»*/
12887
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (17/07/2022-04:07:54)»*/
12888
12888
  /*-----------------------------------------------------------------------------*/
12889
12889
 
12890
12890
 
@@ -13244,24 +13244,9 @@ WebsocketImplementation={
13244
13244
  }
13245
13245
 
13246
13246
 
13247
- // DBG
13248
- lognow(" Channel information:dataWrapped",dataWrapped);
13249
- lognow(" Channel information:dataWrapped",JSON.stringify(dataWrapped));
13250
- lognow(" Channel information:dataWrapped.channelName«"+dataWrapped.channelName+"»");
13251
- lognow(" Channel information:receptionEntryPoint.channelName«"+receptionEntryPoint.channelName+"»");
13252
- lognow(" C1",(dataWrapped.channelName!=receptionEntryPoint.channelName));
13253
- lognow(" C2",(dataWrapped.channelName!==receptionEntryPoint.channelName));
13254
- lognow(" C11",(dataWrapped.channelName==receptionEntryPoint.channelName));
13255
- lognow(" C22",(dataWrapped.channelName===receptionEntryPoint.channelName));
13256
- lognow(" C111",(dataWrapped.channelName.normalize()==receptionEntryPoint.channelName.normalize()));
13257
- lognow(" C222",(dataWrapped.channelName.normalize()===receptionEntryPoint.channelName.normalize()));
13258
-
13259
-
13260
- ////
13261
- // CURRENT 5 : PROBLEM IS HERE :
13262
13247
 
13263
13248
  // Channel information is stored in exchanged data :
13264
- if(dataWrapped.channelName.normalize()!==receptionEntryPoint.channelName.normalize()) return;
13249
+ if(dataWrapped.channelName!==receptionEntryPoint.channelName) return;
13265
13250
 
13266
13251
 
13267
13252
  const clientSocket=clientSocketParam;
@@ -13314,11 +13299,20 @@ WebsocketImplementation={
13314
13299
  // TODO : FIXME : Use one single interface !
13315
13300
  let serverClients;
13316
13301
  if(!WebsocketImplementation.useSocketIOImplementation) serverClients=nodeServerInstance.serverSocket.clients;
13317
- else serverClients=nodeServerInstance.serverSocket.sockets.clients();
13302
+ // OLD: else serverClients=nodeServerInstance.serverSocket.sockets.clients();
13303
+ else serverClients=nodeServerInstance.serverSocket.sockets;
13304
+
13305
+
13306
+ // DBG
13307
+ lognow("nodeServerInstance.serverSocket:",nodeServerInstance.serverSocket);
13308
+ lognow("nodeServerInstance.serverSocket.clients:",nodeServerInstance.serverSocket.clients);
13309
+ lognow("serverClients:",serverClients);
13310
+ lognow("serverClients:",serverClients);
13311
+
13312
+
13318
13313
 
13319
13314
  serverClients.forEach((clientSocket)=>{
13320
13315
 
13321
-
13322
13316
  // TODO : FIXME : Use one single interface !
13323
13317
  if(!WebsocketImplementation.useSocketIOImplementation) if(clientSocket.readyState!==WebSocket.OPEN) return;
13324
13318
  else if(clientSocket.connected) return;
@@ -13495,7 +13489,8 @@ WebsocketImplementation={
13495
13489
 
13496
13490
  // TODO : FIXME : Use one single interface !
13497
13491
  if(!WebsocketImplementation.useSocketIOImplementation) serverClients=nodeServerInstance.serverSocket.clients;
13498
- else serverClients=nodeServerInstance.serverSocket.sockets.clients();
13492
+ // OLD : else serverClients=nodeServerInstance.serverSocket.sockets.clients();
13493
+ else serverClients=nodeServerInstance.serverSocket.sockets;
13499
13494
 
13500
13495
  serverClients.forEach((clientSocket)=>{
13501
13496
  clearInterval(clientSocket.stateCheckInterval);
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.150",
3
+ "version": "0.0.153",
4
4
  "main": "aotrautils.build.js",
5
5
  "description": "A library for vanilla javascript utils (client-side) used in aotra javascript CMS",
6
6
  "author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",