aotrautils-srv 0.0.1871 → 0.0.1874
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-18:37:42)»*/
|
|
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-18:37:42)»*/
|
|
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-18:37:42)»*/
|
|
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,23 +8096,16 @@ WebsocketImplementation={
|
|
|
8100
8096
|
let serverSocket;
|
|
8101
8097
|
if(!WebsocketImplementation.useSocketIOImplementation){
|
|
8102
8098
|
|
|
8103
|
-
|
|
8104
|
-
//DBG
|
|
8105
|
-
lognow("(getServer())>>>>>window.WebSocket:", window.WebSocket);
|
|
8106
|
-
|
|
8107
|
-
// DOES NOT WORK ANYMORE :
|
|
8108
|
-
// serverSocket=new WebSocket.Server({ "server":listenableServer });
|
|
8109
8099
|
|
|
8110
8100
|
if(typeof(WebSocketServer)==="undefined")
|
|
8111
8101
|
window.WebSocketServer=require("ws");
|
|
8112
8102
|
if(typeof(WebSocketServer)==="undefined")
|
|
8113
8103
|
// TRACE
|
|
8114
|
-
|
|
8104
|
+
lognow("ERROR : «ws» CONSOLE SERVER library not found. Cannot launch nodejs server. Aborting.");
|
|
8115
8105
|
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
serverSocket=new window.WebSocketServer({ "server":listenableServer });
|
|
8106
|
+
serverSocket=new window.WebSocketServer.WebSocketServer({ "server":listenableServer });
|
|
8107
|
+
// DOES NOT WORK ANYMORE :
|
|
8108
|
+
// serverSocket=new WebSocket.Server({ "server":listenableServer });
|
|
8120
8109
|
|
|
8121
8110
|
|
|
8122
8111
|
}else{
|
|
@@ -8206,7 +8195,7 @@ WebsocketImplementation={
|
|
|
8206
8195
|
|
|
8207
8196
|
clientSocket.addEventListener("error", error=>{
|
|
8208
8197
|
// TRACE
|
|
8209
|
-
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);
|
|
8210
8199
|
});
|
|
8211
8200
|
|
|
8212
8201
|
}else{
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1874",
|
|
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)",
|