aotrautils 0.0.1479 → 0.0.1481

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/04/2025-01:02:00)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (27/04/2025-01:12:13)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4894,7 +4894,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4894
4894
 
4895
4895
 
4896
4896
 
4897
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (27/04/2025-01:02:00)»*/
4897
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (27/04/2025-01:12:13)»*/
4898
4898
  /*-----------------------------------------------------------------------------*/
4899
4899
  /* ## Utility global methods in a browser (htmljs) client environment.
4900
4900
  *
@@ -13466,7 +13466,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
13466
13466
 
13467
13467
 
13468
13468
 
13469
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (27/04/2025-01:02:00)»*/
13469
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (27/04/2025-01:12:13)»*/
13470
13470
  /*-----------------------------------------------------------------------------*/
13471
13471
 
13472
13472
 
@@ -14705,7 +14705,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14705
14705
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14706
14706
 
14707
14707
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14708
- /*utils AI library associated with aotra version : «1_29072022-2359 (27/04/2025-01:02:00)»*/
14708
+ /*utils AI library associated with aotra version : «1_29072022-2359 (27/04/2025-01:12:13)»*/
14709
14709
  /*-----------------------------------------------------------------------------*/
14710
14710
 
14711
14711
 
@@ -14851,7 +14851,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
14851
14851
 
14852
14852
 
14853
14853
 
14854
- /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (27/04/2025-01:02:00)»*/
14854
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (27/04/2025-01:12:13)»*/
14855
14855
  /*-----------------------------------------------------------------------------*/
14856
14856
 
14857
14857
 
@@ -16932,9 +16932,10 @@ getAORTACNode=function(nodeId=getUUID(), selfOrigin="ws://127.0.0.1:40000", outc
16932
16932
 
16933
16933
  class ServerReceptionEntryPoint{
16934
16934
 
16935
- constructor(channelNameParam, clientsRoomsTag){
16935
+ constructor(channelNameParam, clientsRoomsTag, doOnIncomingMessage){
16936
16936
  this.channelName=channelNameParam;
16937
- this.clientsRoomsTag=clientsRoomsTag;
16937
+ this.clientsRoomsTag=clientsRoomsTag;
16938
+ this.doOnIncomingMessage=doOnIncomingMessage;
16938
16939
  }
16939
16940
 
16940
16941
  execute(eventOrMessage, clientSocketParam){
@@ -16955,10 +16956,10 @@ class ServerReceptionEntryPoint{
16955
16956
 
16956
16957
  if(!isClientInRoom) return;
16957
16958
 
16958
- if(doOnIncomingMessage){
16959
+ if(this.doOnIncomingMessage){
16959
16960
  // DBG
16960
- lognow("(SERVER) doOnIncomingMessage:");
16961
- doOnIncomingMessage(dataWrapped.data, clientSocketParam);
16961
+ lognow("(SERVER) this.doOnIncomingMessage:");
16962
+ this.doOnIncomingMessage(dataWrapped.data, clientSocketParam);
16962
16963
  }
16963
16964
 
16964
16965
  }
@@ -17003,7 +17004,7 @@ class NodeServerInstance{
17003
17004
  // DBG
17004
17005
  lognow("(SERVER) Registering receive for «"+channelNameParam+"»...");
17005
17006
 
17006
- const serverReceptionEntryPoint=new ServerReceptionEntryPoint(channelNameParam,clientsRoomsTag);
17007
+ const serverReceptionEntryPoint=new ServerReceptionEntryPoint(channelNameParam, clientsRoomsTag, doOnIncomingMessage);
17007
17008
 
17008
17009
  ///!!!
17009
17010
  this.serverReceptionEntryPoints.push(serverReceptionEntryPoint);
@@ -17018,8 +17019,13 @@ class NodeServerInstance{
17018
17019
 
17019
17020
  return this;
17020
17021
  }
17021
-
17022
-
17022
+
17023
+
17024
+ // TODO : DEVELOP...
17025
+ //sendChainable(channelNameParam, data, clientsRoomsTag=null){
17026
+ //}
17027
+
17028
+
17023
17029
  send(channelName, data, clientsRoomsTag=null, clientSocketParam=null){
17024
17030
 
17025
17031
  // DBG
@@ -17244,7 +17250,6 @@ if(typeof(window)==="undefined") window=global;
17244
17250
  class ClientReceptionEntryPoint{
17245
17251
 
17246
17252
  constructor(channelNameParam, entryPointId, clientsRoomsTag, listenerConfig, doOnIncomingMessage){
17247
-
17248
17253
  this.channelName=channelNameParam;
17249
17254
  this.entryPointId=entryPointId;
17250
17255
  this.clientsRoomsTag=clientsRoomsTag;
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.1479",
3
+ "version": "0.0.1481",
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)",