aotrautils-srv 0.0.1474 → 0.0.1476
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 (26/04/2025-13:
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (26/04/2025-13:41:01)»*/
|
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 (26/04/2025-13:
|
4897
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (26/04/2025-13:41:01)»*/
|
4898
4898
|
/*-----------------------------------------------------------------------------*/
|
4899
4899
|
|
4900
4900
|
|
@@ -5040,7 +5040,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
5040
5040
|
|
5041
5041
|
|
5042
5042
|
|
5043
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (26/04/2025-13:
|
5043
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (26/04/2025-13:41:01)»*/
|
5044
5044
|
/*-----------------------------------------------------------------------------*/
|
5045
5045
|
|
5046
5046
|
|
@@ -6046,19 +6046,19 @@ WebsocketImplementation={
|
|
6046
6046
|
const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
|
6047
6047
|
|
6048
6048
|
// Channel information is stored in exchanged data :
|
6049
|
-
if(dataWrapped.channelName && dataWrapped.channelName!==
|
6049
|
+
if(dataWrapped.channelName && dataWrapped.channelName!==receptionEntryPoint.channelName) return;
|
6050
6050
|
|
6051
6051
|
// Room information is stored in client socket object :
|
6052
6052
|
const clientSocket=browserInstance.clientSocket;
|
6053
|
-
if(!WebsocketImplementation.isInRoom(clientSocket,
|
6053
|
+
if(!WebsocketImplementation.isInRoom(clientSocket, receptionEntryPoint.clientsRoomsTag)) return;
|
6054
6054
|
|
6055
6055
|
// We remove one-time usage listeners :
|
6056
|
-
// We remove BEFORE executing doOnIncomingMessage(), because in
|
6057
|
-
if(
|
6056
|
+
// We remove BEFORE executing doOnIncomingMessage(), because in receptionEntryPoint function we can have other listener registration UNDER THE SAME ID !
|
6057
|
+
if(receptionEntryPoint.listenerConfig && receptionEntryPoint.listenerConfig.destroyListenerAfterReceiving)
|
6058
6058
|
remove(browserInstance.receptionEntryPoints, receptionEntryPoint);
|
6059
6059
|
|
6060
|
-
if(
|
6061
|
-
|
6060
|
+
if(receptionEntryPoint.doOnIncomingMessage)
|
6061
|
+
receptionEntryPoint.doOnIncomingMessage(dataWrapped.data, clientSocket);
|
6062
6062
|
|
6063
6063
|
}
|
6064
6064
|
};
|
aotrautils-srv/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils-srv",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1476",
|
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)",
|