aotrautils-srv 0.0.292 → 0.0.294
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-22:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (27/11/2022-22:35:00)»*/
|
|
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-22:
|
|
4830
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (27/11/2022-22:35:00)»*/
|
|
4831
4831
|
/*-----------------------------------------------------------------------------*/
|
|
4832
4832
|
|
|
4833
4833
|
|
|
@@ -5198,7 +5198,7 @@ WebsocketImplementation={
|
|
|
5198
5198
|
const receptionEntryPoint={
|
|
5199
5199
|
channelName:channelName,
|
|
5200
5200
|
clientsRoomsTag:clientsRoomsTag,
|
|
5201
|
-
execute:(clientSocketParam)=>{
|
|
5201
|
+
execute:(clientSocketParam, eventOrMessage)=>{
|
|
5202
5202
|
|
|
5203
5203
|
|
|
5204
5204
|
// With «ws» library we have no choive than register message events inside a «connection» event !
|
|
@@ -5207,7 +5207,7 @@ WebsocketImplementation={
|
|
|
5207
5207
|
|
|
5208
5208
|
|
|
5209
5209
|
// DBG
|
|
5210
|
-
lognow("(SERVER) RECEIVED SOMETHING FROM CLIENT...");
|
|
5210
|
+
lognow("(SERVER) RECEIVED SOMETHING FROM CLIENT...", eventOrMessage);
|
|
5211
5211
|
|
|
5212
5212
|
// dataWrapped=JSON.parse(dataWrapped);
|
|
5213
5213
|
// dataWrapped=getAt(dataWrapped,0);// We get the root element
|
|
@@ -5345,8 +5345,7 @@ WebsocketImplementation={
|
|
|
5345
5345
|
|
|
5346
5346
|
////
|
|
5347
5347
|
|
|
5348
|
-
doOnMessage=()=>{
|
|
5349
|
-
|
|
5348
|
+
doOnMessage=(eventOrMessage)=>{
|
|
5350
5349
|
|
|
5351
5350
|
|
|
5352
5351
|
// We execute the events registration listeners entry points:
|
|
@@ -5355,7 +5354,7 @@ WebsocketImplementation={
|
|
|
5355
5354
|
// DBG
|
|
5356
5355
|
console.log("(SERVER) ENTRY POINT ["+i+"] is executed !");
|
|
5357
5356
|
|
|
5358
|
-
receptionEntryPoint.execute(clientSocket);
|
|
5357
|
+
receptionEntryPoint.execute(clientSocket, eventOrMessage);
|
|
5359
5358
|
});
|
|
5360
5359
|
|
|
5361
5360
|
};
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.294",
|
|
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)",
|