aotrautils-srv 0.0.1479 → 0.0.1480
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:
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (27/04/2025-01:10:16)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -4894,7 +4894,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
4894
4894
|
|
4895
4895
|
|
4896
4896
|
|
4897
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (27/04/2025-01:
|
4897
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (27/04/2025-01:10:16)»*/
|
4898
4898
|
/*-----------------------------------------------------------------------------*/
|
4899
4899
|
|
4900
4900
|
|
@@ -5040,7 +5040,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
5040
5040
|
|
5041
5041
|
|
5042
5042
|
|
5043
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (27/04/2025-01:
|
5043
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (27/04/2025-01:10:16)»*/
|
5044
5044
|
/*-----------------------------------------------------------------------------*/
|
5045
5045
|
|
5046
5046
|
|
@@ -7121,9 +7121,10 @@ getAORTACNode=function(nodeId=getUUID(), selfOrigin="ws://127.0.0.1:40000", outc
|
|
7121
7121
|
|
7122
7122
|
class ServerReceptionEntryPoint{
|
7123
7123
|
|
7124
|
-
constructor(channelNameParam, clientsRoomsTag){
|
7124
|
+
constructor(channelNameParam, clientsRoomsTag, doOnIncomingMessage){
|
7125
7125
|
this.channelName=channelNameParam;
|
7126
|
-
this.clientsRoomsTag=clientsRoomsTag;
|
7126
|
+
this.clientsRoomsTag=clientsRoomsTag;
|
7127
|
+
this.doOnIncomingMessage=doOnIncomingMessage;
|
7127
7128
|
}
|
7128
7129
|
|
7129
7130
|
execute(eventOrMessage, clientSocketParam){
|
@@ -7144,10 +7145,10 @@ class ServerReceptionEntryPoint{
|
|
7144
7145
|
|
7145
7146
|
if(!isClientInRoom) return;
|
7146
7147
|
|
7147
|
-
if(doOnIncomingMessage){
|
7148
|
+
if(this.doOnIncomingMessage){
|
7148
7149
|
// DBG
|
7149
|
-
lognow("(SERVER) doOnIncomingMessage:");
|
7150
|
-
doOnIncomingMessage(dataWrapped.data, clientSocketParam);
|
7150
|
+
lognow("(SERVER) this.doOnIncomingMessage:");
|
7151
|
+
this.doOnIncomingMessage(dataWrapped.data, clientSocketParam);
|
7151
7152
|
}
|
7152
7153
|
|
7153
7154
|
}
|
@@ -7192,7 +7193,7 @@ class NodeServerInstance{
|
|
7192
7193
|
// DBG
|
7193
7194
|
lognow("(SERVER) Registering receive for «"+channelNameParam+"»...");
|
7194
7195
|
|
7195
|
-
const serverReceptionEntryPoint=new ServerReceptionEntryPoint(channelNameParam,clientsRoomsTag);
|
7196
|
+
const serverReceptionEntryPoint=new ServerReceptionEntryPoint(channelNameParam, clientsRoomsTag, doOnIncomingMessage);
|
7196
7197
|
|
7197
7198
|
///!!!
|
7198
7199
|
this.serverReceptionEntryPoints.push(serverReceptionEntryPoint);
|
@@ -7207,8 +7208,13 @@ class NodeServerInstance{
|
|
7207
7208
|
|
7208
7209
|
return this;
|
7209
7210
|
}
|
7210
|
-
|
7211
|
-
|
7211
|
+
|
7212
|
+
|
7213
|
+
// TODO : DEVELOP...
|
7214
|
+
//sendChainable(channelNameParam, data, clientsRoomsTag=null){
|
7215
|
+
//}
|
7216
|
+
|
7217
|
+
|
7212
7218
|
send(channelName, data, clientsRoomsTag=null, clientSocketParam=null){
|
7213
7219
|
|
7214
7220
|
// DBG
|
@@ -7433,7 +7439,6 @@ if(typeof(window)==="undefined") window=global;
|
|
7433
7439
|
class ClientReceptionEntryPoint{
|
7434
7440
|
|
7435
7441
|
constructor(channelNameParam, entryPointId, clientsRoomsTag, listenerConfig, doOnIncomingMessage){
|
7436
|
-
|
7437
7442
|
this.channelName=channelNameParam;
|
7438
7443
|
this.entryPointId=entryPointId;
|
7439
7444
|
this.clientsRoomsTag=clientsRoomsTag;
|
aotrautils-srv/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils-srv",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1480",
|
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)",
|