aotrautils-srv 0.0.457 → 0.0.458
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/01/2023-22:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (27/01/2023-22:22:02)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -4864,7 +4864,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4864
4864
|
|
|
4865
4865
|
|
|
4866
4866
|
|
|
4867
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (27/01/2023-22:
|
|
4867
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (27/01/2023-22:22:02)»*/
|
|
4868
4868
|
/*-----------------------------------------------------------------------------*/
|
|
4869
4869
|
|
|
4870
4870
|
|
|
@@ -5836,21 +5836,20 @@ WebsocketImplementation={
|
|
|
5836
5836
|
thenWhenReceiveMessageType:(channelNameForResponse, listenerConfig={messageType:"",condition:()=>true}, doOnIncomingMessageForResponse)=>{
|
|
5837
5837
|
const listenerId=nonull(listenerConfig.messageType,"");
|
|
5838
5838
|
|
|
5839
|
-
const self=this;
|
|
5840
5839
|
browserInstance.receive(channelNameForResponse, (dataLocal, clientSocket)=>{
|
|
5841
5840
|
|
|
5842
5841
|
if(listenerConfig.condition && !listenerConfig.condition(dataLocal, clientSocket)) return ;
|
|
5843
5842
|
|
|
5844
5843
|
// We check if we have the same message id:
|
|
5845
|
-
if(
|
|
5844
|
+
if(resultPromise.messageId!==dataLocal.messageId){
|
|
5846
5845
|
// DBG
|
|
5847
|
-
lognow("
|
|
5846
|
+
lognow("resultPromise.messageId:"+resultPromise.messageId+"|dataLocal.messageId"+dataLocal.messageId);
|
|
5848
5847
|
return;
|
|
5849
5848
|
}
|
|
5850
5849
|
|
|
5851
5850
|
doOnIncomingMessageForResponse(dataLocal, clientSocket);
|
|
5852
|
-
},
|
|
5853
|
-
return
|
|
5851
|
+
}, resultPromise.clientsRoomsTag, listenerId, {destroyListenerAfterReceiving:true});
|
|
5852
|
+
return resultPromise;
|
|
5854
5853
|
}
|
|
5855
5854
|
};
|
|
5856
5855
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.458",
|
|
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)",
|