aotrautils-srv 0.0.1872 → 0.0.1875
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 (19/06/2026-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (19/06/2026-19:27:45)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -5470,7 +5470,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5470
5470
|
|
|
5471
5471
|
|
|
5472
5472
|
|
|
5473
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (19/06/2026-
|
|
5473
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (19/06/2026-19:27:45)»*/
|
|
5474
5474
|
/*-----------------------------------------------------------------------------*/
|
|
5475
5475
|
|
|
5476
5476
|
|
|
@@ -5730,7 +5730,7 @@ getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProviderName=DE
|
|
|
5730
5730
|
|
|
5731
5731
|
|
|
5732
5732
|
|
|
5733
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (19/06/2026-
|
|
5733
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (19/06/2026-19:27:45)»*/
|
|
5734
5734
|
/*-----------------------------------------------------------------------------*/
|
|
5735
5735
|
|
|
5736
5736
|
|
|
@@ -8016,10 +8016,6 @@ WebsocketImplementation={
|
|
|
8016
8016
|
|
|
8017
8017
|
window.WebSocket=require("ws");
|
|
8018
8018
|
|
|
8019
|
-
//DBG
|
|
8020
|
-
lognow(">>>>>window.WebSocket:", window.WebSocket);
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
8019
|
if(typeof(WebSocket)==="undefined"){
|
|
8024
8020
|
// TRACE
|
|
8025
8021
|
console.log("ERROR : «ws» CONSOLE/BROWSER CLIENT/SERVER library not found. Cannot launch nodejs server. Aborting.");
|
|
@@ -8100,13 +8096,12 @@ WebsocketImplementation={
|
|
|
8100
8096
|
let serverSocket;
|
|
8101
8097
|
if(!WebsocketImplementation.useSocketIOImplementation){
|
|
8102
8098
|
|
|
8103
|
-
|
|
8104
8099
|
|
|
8105
8100
|
if(typeof(WebSocketServer)==="undefined")
|
|
8106
8101
|
window.WebSocketServer=require("ws");
|
|
8107
8102
|
if(typeof(WebSocketServer)==="undefined")
|
|
8108
8103
|
// TRACE
|
|
8109
|
-
|
|
8104
|
+
lognow("ERROR : «ws» CONSOLE SERVER library not found. Cannot launch nodejs server. Aborting.");
|
|
8110
8105
|
|
|
8111
8106
|
serverSocket=new window.WebSocketServer.WebSocketServer({ "server":listenableServer });
|
|
8112
8107
|
// DOES NOT WORK ANYMORE :
|
|
@@ -8200,7 +8195,7 @@ WebsocketImplementation={
|
|
|
8200
8195
|
|
|
8201
8196
|
clientSocket.addEventListener("error", error=>{
|
|
8202
8197
|
// TRACE
|
|
8203
|
-
lognow("ERROR : (NODEJS) A WebSocket client error occurred while trying to connect to server:", error
|
|
8198
|
+
lognow("ERROR : (NODEJS) A WebSocket client error occurred while trying to connect to server: error:", error);
|
|
8204
8199
|
});
|
|
8205
8200
|
|
|
8206
8201
|
}else{
|
|
@@ -9080,7 +9075,7 @@ initClient=function(isNodeContext=true, useSocketIOImplementation=/*DEBUG*/false
|
|
|
9080
9075
|
aotraClient.client.start=function(){
|
|
9081
9076
|
|
|
9082
9077
|
// DBG
|
|
9083
|
-
lognow("INFO : Setting up client :...");
|
|
9078
|
+
lognow("INFO : Setting up client :... (url:«"+url+"»;port:«"+port+"»)");
|
|
9084
9079
|
|
|
9085
9080
|
let socketToServerClientInstance=WebsocketImplementation.getStatic(isNodeContext, useSocketIOImplementation).connectToServer(url, port, isSecure, timeout);
|
|
9086
9081
|
if(!socketToServerClientInstance){
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1875",
|
|
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)",
|