aotrautils-srv 0.0.316 → 0.0.318
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 (04/12/2022-00:21:29)»*/
|
|
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 (04/12/2022-00:21:29)»*/
|
|
4831
4831
|
/*-----------------------------------------------------------------------------*/
|
|
4832
4832
|
|
|
4833
4833
|
|
|
@@ -5128,9 +5128,6 @@ WebsocketImplementation={
|
|
|
5128
5128
|
|
|
5129
5129
|
const eventOrMessage=(!WebsocketImplementation.useSocketIOImplementation?eventOrMessageParam.data:eventOrMessageParam);
|
|
5130
5130
|
|
|
5131
|
-
// DBG
|
|
5132
|
-
lognow("REFINED : eventOrMessage",eventOrMessage);
|
|
5133
|
-
|
|
5134
5131
|
let dataResult=eventOrMessage;
|
|
5135
5132
|
|
|
5136
5133
|
try{
|
|
@@ -5202,8 +5199,8 @@ WebsocketImplementation={
|
|
|
5202
5199
|
|
|
5203
5200
|
// With «ws» library we have no choive than register message events inside a «connection» event !
|
|
5204
5201
|
|
|
5205
|
-
|
|
5206
|
-
|
|
5202
|
+
// // DBG
|
|
5203
|
+
// lognow("(SERVER) RECEIVED SOMETHING FROM CLIENT...", eventOrMessage.data);
|
|
5207
5204
|
|
|
5208
5205
|
// dataWrapped=JSON.parse(dataWrapped);
|
|
5209
5206
|
// dataWrapped=getAt(dataWrapped,0);// We get the root element
|
|
@@ -5212,9 +5209,9 @@ WebsocketImplementation={
|
|
|
5212
5209
|
const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
|
|
5213
5210
|
|
|
5214
5211
|
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5212
|
+
// // DBG
|
|
5213
|
+
// lognow("(SERVER) dataWrapped.channelName:",dataWrapped.channelName);
|
|
5214
|
+
// lognow("(SERVER) receptionEntryPoint.channelName:",receptionEntryPoint.channelName);
|
|
5218
5215
|
|
|
5219
5216
|
|
|
5220
5217
|
// Channel information is stored in exchanged data :
|
|
@@ -5263,6 +5260,9 @@ WebsocketImplementation={
|
|
|
5263
5260
|
|
|
5264
5261
|
if(!clientSocketParam){
|
|
5265
5262
|
|
|
5263
|
+
// DBG
|
|
5264
|
+
lognow("(SERVER) (server sends to all clients)");
|
|
5265
|
+
|
|
5266
5266
|
// TODO : FIXME : Use one single interface !
|
|
5267
5267
|
let serverClients;
|
|
5268
5268
|
if(!WebsocketImplementation.useSocketIOImplementation) serverClients=nodeServerInstance.serverSocket.clients;
|
|
@@ -5296,6 +5296,10 @@ WebsocketImplementation={
|
|
|
5296
5296
|
|
|
5297
5297
|
}else{
|
|
5298
5298
|
|
|
5299
|
+
// DBG
|
|
5300
|
+
lognow("(SERVER) (server sends to a client)");
|
|
5301
|
+
|
|
5302
|
+
|
|
5299
5303
|
// TODO : FIXME : Use one single interface !
|
|
5300
5304
|
let clientSocket=clientSocketParam;
|
|
5301
5305
|
if(!WebsocketImplementation.useSocketIOImplementation) if(clientSocket.readyState!==WebSocket.OPEN) return;
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.318",
|
|
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)",
|