aotrautils-srv 0.0.437 → 0.0.438
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 (23/01/2023-22:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (23/01/2023-22:08:32)»*/
|
|
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 (23/01/2023-22:
|
|
4867
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (23/01/2023-22:08:32)»*/
|
|
4868
4868
|
/*-----------------------------------------------------------------------------*/
|
|
4869
4869
|
|
|
4870
4870
|
|
|
@@ -5762,33 +5762,33 @@ WebsocketImplementation={
|
|
|
5762
5762
|
lognow("INFO : (CLIENT-BROWSER) SETTING UP RECEIVE for :",channelNameParam);
|
|
5763
5763
|
|
|
5764
5764
|
|
|
5765
|
-
const receptionEntryPoint={
|
|
5766
|
-
channelName:channelNameParam,
|
|
5767
|
-
clientsRoomsTag:clientsRoomsTag,
|
|
5768
|
-
// TODO : ADD TO ALL OTHER SUBSYSTEMS !
|
|
5769
|
-
id:receptionEntryPointId,
|
|
5770
|
-
|
|
5771
|
-
execute:(eventOrMessage)=>{
|
|
5772
|
-
|
|
5773
|
-
const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
// Channel information is stored in exchanged data :
|
|
5779
|
-
if(dataWrapped.channelName && dataWrapped.channelName!==channelNameParam) return;
|
|
5780
|
-
|
|
5781
|
-
const clientSocket=browserInstance.clientSocket;
|
|
5782
|
-
|
|
5783
|
-
// Room information is stored in client socket object :
|
|
5784
|
-
if(!WebsocketImplementation.isInRoom(clientSocket,clientsRoomsTag)) return;
|
|
5785
|
-
|
|
5786
|
-
if(doOnIncomingMessage) doOnIncomingMessage(dataWrapped.data, clientSocket);
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
}
|
|
5790
|
-
};
|
|
5791
|
-
|
|
5765
|
+
// const receptionEntryPoint={
|
|
5766
|
+
// channelName:channelNameParam,
|
|
5767
|
+
// clientsRoomsTag:clientsRoomsTag,
|
|
5768
|
+
// // TODO : ADD TO ALL OTHER SUBSYSTEMS !
|
|
5769
|
+
// id:receptionEntryPointId,
|
|
5770
|
+
//
|
|
5771
|
+
// execute:(eventOrMessage)=>{
|
|
5772
|
+
//
|
|
5773
|
+
// const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
|
|
5774
|
+
//
|
|
5775
|
+
//// // DBG
|
|
5776
|
+
//// lognow("(CLIENT) (DEBUG) CLIENT RECEIVED SOMETHING FROM SERVER :",dataWrapped);
|
|
5777
|
+
//
|
|
5778
|
+
// // Channel information is stored in exchanged data :
|
|
5779
|
+
// if(dataWrapped.channelName && dataWrapped.channelName!==channelNameParam) return;
|
|
5780
|
+
//
|
|
5781
|
+
// const clientSocket=browserInstance.clientSocket;
|
|
5782
|
+
//
|
|
5783
|
+
// // Room information is stored in client socket object :
|
|
5784
|
+
// if(!WebsocketImplementation.isInRoom(clientSocket,clientsRoomsTag)) return;
|
|
5785
|
+
//
|
|
5786
|
+
// if(doOnIncomingMessage) doOnIncomingMessage(dataWrapped.data, clientSocket);
|
|
5787
|
+
//
|
|
5788
|
+
//
|
|
5789
|
+
// }
|
|
5790
|
+
// };
|
|
5791
|
+
//
|
|
5792
5792
|
// TODO : ADD TO ALL OTHER SUBSYSTEMS !
|
|
5793
5793
|
// if(!contains(browserInstance.receptionEntryPoints,(l)=>(l.id && receptionEntryPoint.id && l.id===receptionEntryPoint.id)))
|
|
5794
5794
|
// browserInstance.receptionEntryPoints.push(receptionEntryPoint);
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.438",
|
|
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)",
|