aotrautils-srv 0.0.283 → 0.0.285
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 (
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (27/11/2022-03:05:58)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -4827,7 +4827,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4827
4827
|
|
|
4828
4828
|
|
|
4829
4829
|
|
|
4830
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
|
4830
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (27/11/2022-03:05:58)»*/
|
|
4831
4831
|
/*-----------------------------------------------------------------------------*/
|
|
4832
4832
|
|
|
4833
4833
|
|
|
@@ -5199,27 +5199,31 @@ WebsocketImplementation={
|
|
|
5199
5199
|
|
|
5200
5200
|
// TODO : Find a way to remove this !
|
|
5201
5201
|
const doOnMessage=(eventOrMessage)=>{
|
|
5202
|
+
|
|
5203
|
+
|
|
5204
|
+
// DBG
|
|
5205
|
+
lognow("(SERVER) RECEIVED SOMETHING FROM CLIENT : ",eventOrMessage);
|
|
5206
|
+
|
|
5207
|
+
// dataWrapped=JSON.parse(dataWrapped);
|
|
5208
|
+
// dataWrapped=getAt(dataWrapped,0);// We get the root element
|
|
5209
|
+
|
|
5210
|
+
|
|
5211
|
+
const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
|
|
5202
5212
|
|
|
5203
|
-
|
|
5204
|
-
//
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
// TODO : FIXME : Use one single interface !
|
|
5219
|
-
// Room information is stored in client socket object :
|
|
5220
|
-
if(!WebsocketImplementation.isInRoom(clientSocket, receptionEntryPoint.clientsRoomsTag)) return;
|
|
5221
|
-
|
|
5222
|
-
doOnIncomingMessage(dataWrapped.data, clientSocket);
|
|
5213
|
+
|
|
5214
|
+
// Channel information is stored in exchanged data :
|
|
5215
|
+
if(dataWrapped.channelName!==receptionEntryPoint.channelName) return;
|
|
5216
|
+
|
|
5217
|
+
|
|
5218
|
+
const clientSocket=clientSocketParam;
|
|
5219
|
+
|
|
5220
|
+
|
|
5221
|
+
|
|
5222
|
+
// TODO : FIXME : Use one single interface !
|
|
5223
|
+
// Room information is stored in client socket object :
|
|
5224
|
+
if(!WebsocketImplementation.isInRoom(clientSocket, receptionEntryPoint.clientsRoomsTag)) return;
|
|
5225
|
+
|
|
5226
|
+
doOnIncomingMessage(dataWrapped.data, clientSocket);
|
|
5223
5227
|
|
|
5224
5228
|
};
|
|
5225
5229
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.285",
|
|
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)",
|