aotrautils-srv 0.0.496 → 0.0.498
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 (05/02/2023-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (05/02/2023-12:37:52)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -4866,7 +4866,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4866
4866
|
|
|
4867
4867
|
|
|
4868
4868
|
|
|
4869
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (05/02/2023-
|
|
4869
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (05/02/2023-12:37:52)»*/
|
|
4870
4870
|
/*-----------------------------------------------------------------------------*/
|
|
4871
4871
|
|
|
4872
4872
|
|
|
@@ -5268,18 +5268,12 @@ WebsocketImplementation={
|
|
|
5268
5268
|
const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
|
|
5269
5269
|
|
|
5270
5270
|
|
|
5271
|
-
// // DBG
|
|
5272
|
-
// lognow("(SERVER) dataWrapped.channelName:",dataWrapped.channelName);
|
|
5273
|
-
// lognow("(SERVER) receptionEntryPoint.channelName:",receptionEntryPoint.channelName);
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
5271
|
// Channel information is stored in exchanged data :
|
|
5277
5272
|
if(dataWrapped.channelName!==receptionEntryPoint.channelName) return;
|
|
5278
5273
|
|
|
5279
5274
|
|
|
5280
|
-
// DBG
|
|
5281
|
-
lognow("(SERVER) ENTRY POINT IS OF THE RIGHT CHANNEL:", receptionEntryPoint.channelName);
|
|
5282
|
-
|
|
5275
|
+
// // DBG
|
|
5276
|
+
// lognow("(SERVER) ENTRY POINT IS OF THE RIGHT CHANNEL:", receptionEntryPoint.channelName);
|
|
5283
5277
|
|
|
5284
5278
|
|
|
5285
5279
|
// TODO : FIXME : Use one single interface !
|
|
@@ -5416,7 +5410,15 @@ WebsocketImplementation={
|
|
|
5416
5410
|
};
|
|
5417
5411
|
|
|
5418
5412
|
if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.addEventListener("message", doOnMessage);
|
|
5419
|
-
else
|
|
5413
|
+
else{
|
|
5414
|
+
// NO: else clientSocket.on("message", doOnMessage);
|
|
5415
|
+
foreach(nodeServerInstance.receptionEntryPoints,(receptionEntryPoint,i)=>{
|
|
5416
|
+
const channelName=receptionEntryPoint.channelName;
|
|
5417
|
+
clientSocket.on(channelName, (eventOrMessage)=>{
|
|
5418
|
+
receptionEntryPoint.execute(eventOrMessage, clientSocket);
|
|
5419
|
+
};
|
|
5420
|
+
});
|
|
5421
|
+
}
|
|
5420
5422
|
|
|
5421
5423
|
doOnConnection(nodeServerInstance, clientSocket);
|
|
5422
5424
|
|
|
@@ -5705,7 +5707,15 @@ WebsocketImplementation={
|
|
|
5705
5707
|
|
|
5706
5708
|
const clientSocket=nodeClientInstance.clientSocket;
|
|
5707
5709
|
if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.addEventListener("message", doOnMessage);
|
|
5708
|
-
else
|
|
5710
|
+
else{
|
|
5711
|
+
// NO: else clientSocket.on("message", doOnMessage);
|
|
5712
|
+
foreach(nodeClientInstance.receptionEntryPoints,(receptionEntryPoint,i)=>{
|
|
5713
|
+
const channelName=receptionEntryPoint.channelName;
|
|
5714
|
+
clientSocket.on(channelName, (eventOrMessage)=>{
|
|
5715
|
+
receptionEntryPoint.execute(eventOrMessage, clientSocket);
|
|
5716
|
+
};
|
|
5717
|
+
});
|
|
5718
|
+
}
|
|
5709
5719
|
|
|
5710
5720
|
doOnConnection(nodeClientInstance, clientSocket);
|
|
5711
5721
|
|
|
@@ -5940,7 +5950,16 @@ WebsocketImplementation={
|
|
|
5940
5950
|
|
|
5941
5951
|
const clientSocket=browserInstance.clientSocket;
|
|
5942
5952
|
if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.addEventListener("message", doOnMessage);
|
|
5943
|
-
else
|
|
5953
|
+
else{
|
|
5954
|
+
// NO: else clientSocket.on("message", doOnMessage);
|
|
5955
|
+
foreach(browserInstance.receptionEntryPoints,(receptionEntryPoint,i)=>{
|
|
5956
|
+
const channelName=receptionEntryPoint.channelName;
|
|
5957
|
+
clientSocket.on(channelName, (eventOrMessage)=>{
|
|
5958
|
+
receptionEntryPoint.execute(eventOrMessage, clientSocket);
|
|
5959
|
+
};
|
|
5960
|
+
});
|
|
5961
|
+
}
|
|
5962
|
+
|
|
5944
5963
|
|
|
5945
5964
|
doOnConnection(browserInstance, clientSocket);
|
|
5946
5965
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.498",
|
|
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)",
|