aotrautils-srv 0.0.2007 → 0.0.2008

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 (05/10/2026-01:44:11)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (05/10/2026-02:09:39)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5485,7 +5485,7 @@ window.AOTRAUTILS_LIB_IS_LOADED=true;
5485
5485
 
5486
5486
 
5487
5487
 
5488
- /*utils AI library associated with aotra version : «1_29072022-2359 (05/10/2026-01:44:11)»*/
5488
+ /*utils AI library associated with aotra version : «1_29072022-2359 (05/10/2026-02:09:39)»*/
5489
5489
  /*-----------------------------------------------------------------------------*/
5490
5490
 
5491
5491
 
@@ -5749,7 +5749,7 @@ window.getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProvider
5749
5749
 
5750
5750
 
5751
5751
 
5752
- /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (05/10/2026-01:44:11)»*/
5752
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (05/10/2026-02:09:39)»*/
5753
5753
  /*-----------------------------------------------------------------------------*/
5754
5754
 
5755
5755
 
@@ -9742,6 +9742,7 @@ window.NodeServerInstance=class NodeServerInstance{
9742
9742
  //sendChainable(channelNameParam, data, clientsRoomsTag=null){
9743
9743
  //}
9744
9744
 
9745
+ // I-
9745
9746
  receive(channelNameParam, doOnIncomingMessage, listenerConfig=null, clientsRoomsTag=null){
9746
9747
 
9747
9748
  // DBG
@@ -9855,6 +9856,8 @@ window.NodeServerInstance=class NodeServerInstance{
9855
9856
  onConnectionToClient(doOnConnection, doOnConnectionLost=null){
9856
9857
  const self=this;
9857
9858
 
9859
+ // DBG
9860
+ console.log("(DEBUG) SERVER : Using websocket implementation:",window.WebsocketImplementation.implementationToUse);
9858
9861
 
9859
9862
  // «connection» is the only event fired by the serverSocket :
9860
9863
  this.serverSocket.on("connection", (clientSocket)=>{
@@ -9870,7 +9873,8 @@ window.NodeServerInstance=class NodeServerInstance{
9870
9873
  const doOnMessage=(eventOrMessage)=>{
9871
9874
 
9872
9875
  // DEBUG FOR BUN COMPATIBILITY PROBLEMS :
9873
- let rawData=((eventOrMessage && eventOrMessage.data) ? eventOrMessage.data : eventOrMessage);
9876
+ //let rawData=((eventOrMessage && eventOrMessage.data) ? eventOrMessage.data : eventOrMessage);
9877
+ let rawData=eventOrMessage;
9874
9878
  if(rawData && typeof(rawData)!=="string"){
9875
9879
  rawData=rawData.toString();
9876
9880
  }
@@ -9885,7 +9889,6 @@ window.NodeServerInstance=class NodeServerInstance{
9885
9889
 
9886
9890
  //DBG
9887
9891
  lognow("(DEBUG)(COMMONS)>>>>>>>>><message:",message);
9888
- lognow("(DEBUG)(COMMONS)>>>>>>>>><self.serverReceptionEntryPoints:",self.serverReceptionEntryPoints);
9889
9892
 
9890
9893
  // We execute the events registration listeners entry points:
9891
9894
  foreach(self.serverReceptionEntryPoints,(serverReceptionEntryPoint,i)=>{
@@ -9894,7 +9897,7 @@ window.NodeServerInstance=class NodeServerInstance{
9894
9897
  };
9895
9898
 
9896
9899
  // if(!window.WebsocketImplementation.useSocketIOImplementation){
9897
- if(!window.WebsocketImplementation.implementationToUse){
9900
+ if(!window.WebsocketImplementation.implementationToUse){ // (Case default implementation (websocket))
9898
9901
  // DOES NOT WORK WITH BUN : clientSocket.addEventListener("message", doOnMessage);
9899
9902
  // DOES NOT WORK AT ALL : clientSocket.on("message", doOnMessage);
9900
9903
  clientSocket.onmessage=doOnMessage;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.2007",
3
+ "version": "0.0.2008",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "aotrautils-srv",
9
- "version": "0.0.2007",
9
+ "version": "0.0.2008",
10
10
  "license": "HGPL-1.0",
11
11
  "dependencies": {
12
12
  "atob": "^2.1.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.2007",
3
+ "version": "0.0.2008",
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)",