aotrautils 0.0.140 → 0.0.143

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-02:42:05)»*/
3
+ /*utils COMMONS library associated with aotra version : «1.0.0.000 (17/07/2022-03:32:13)»*/
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-02:42:05)»*/
4831
+ /*utils CLIENT library associated with aotra version : «1.0.0.000 (17/07/2022-03:32:13)»*/
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-02:42:05)»*/
11681
+ /*utils GEOMETRY library associated with aotra version : «1.0.0.000 (17/07/2022-03:32:13)»*/
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-02:42:05)»*/
12887
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (17/07/2022-03:32:13)»*/
12888
12888
  /*-----------------------------------------------------------------------------*/
12889
12889
 
12890
12890
 
@@ -13225,22 +13225,31 @@ WebsocketImplementation={
13225
13225
  execute:(clientSocketParam)=>{
13226
13226
 
13227
13227
 
13228
- // With «ws» library we have no choive than register message events inside a «connection» event !
13229
- // nodeServerInstance.onConnectionToClient((serverParam, clientSocketParam)=>{
13228
+ // With «ws» library we have no choive than register message events inside a «connection» event !
13229
+ // nodeServerInstance.onConnectionToClient((serverParam, clientSocketParam)=>{
13230
13230
 
13231
- // TODO : Find a way to remove this !
13232
- const doOnMessage=(message)=>{
13231
+ // TODO : Find a way to remove this !
13232
+ const doOnMessage=(message)=>{
13233
13233
 
13234
13234
  // dataWrapped=JSON.parse(dataWrapped);
13235
13235
  // dataWrapped=getAt(dataWrapped,0);// We get the root element
13236
13236
  const dataWrapped=(WebsocketImplementation.useFlatStrings?JSON.parse(message):message);
13237
13237
 
13238
+
13239
+ // DBG
13240
+ lognow(" Channel information:dataWrapped",dataWrapped);
13241
+ lognow(" Channel information:dataWrapped.channelName",receptionEntryPoint.clientsRoomsTag);
13242
+ lognow(" Channel information:receptionEntryPoint.channelName",receptionEntryPoint.channelName);
13243
+
13238
13244
 
13239
13245
  // Channel information is stored in exchanged data :
13240
13246
  if(dataWrapped.channelName!==receptionEntryPoint.channelName) return;
13241
-
13242
13247
 
13243
13248
  const clientSocket=clientSocketParam;
13249
+
13250
+
13251
+ // DBG
13252
+ lognow("receptionEntryPoint.clientsRoomsTag:",receptionEntryPoint.clientsRoomsTag);
13244
13253
 
13245
13254
  // TODO : FIXME : Use one single interface !
13246
13255
  // Room information is stored in client socket object :
@@ -13263,9 +13272,6 @@ WebsocketImplementation={
13263
13272
  clientSocketParam.onAny((event,args) => { console.log(`MAIS PUTAIN : ${event}:`,args); });
13264
13273
  clientSocketParam.on(channelName,(args, clientSocket) => { console.log(`MAIS OSKOUR :${args} ${clientSocket}`); });
13265
13274
 
13266
- // DBG
13267
- lognow(">>>>doOnMessage:",doOnMessage);
13268
-
13269
13275
 
13270
13276
 
13271
13277
  clientSocketParam.on(channelName, doOnMessage);
@@ -13316,7 +13322,7 @@ WebsocketImplementation={
13316
13322
 
13317
13323
  dataWrapped=JSON.stringify(dataWrapped);
13318
13324
 
13319
- // TODO : FIXME : Use one single interface !
13325
+ // TODO : FIXME : Use one single interface !
13320
13326
  if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.send(dataWrapped);
13321
13327
  else clientSocket.emit(channelName,dataWrapped);
13322
13328
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.140",
3
+ "version": "0.0.143",
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)",