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