aotrautils-srv 0.0.139 → 0.0.142

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.0.0.000 (17/07/2022-01:46:57)»*/
3
+ /*utils COMMONS library associated with aotra version : «1.0.0.000 (17/07/2022-02:36:10)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4828,7 +4828,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4828
4828
 
4829
4829
 
4830
4830
 
4831
- /*utils SERVER library associated with aotra version : «1.0.0.000 (17/07/2022-01:46:57)»*/
4831
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (17/07/2022-02:36:10)»*/
4832
4832
  /*-----------------------------------------------------------------------------*/
4833
4833
 
4834
4834
 
@@ -5136,11 +5136,11 @@ WebsocketImplementation={
5136
5136
  serverSocket=new Socket.Server(listenableServer);
5137
5137
 
5138
5138
 
5139
- // DBG
5140
- serverSocket.on("protocol",(message)=>{
5141
- // DBG
5142
- lognow("SERVER RECEIVED PROTOCOL MESSAGE !",message);
5143
- });
5139
+ // // DBG
5140
+ // serverSocket.on("protocol",(message)=>{
5141
+ // // DBG
5142
+ // lognow("SERVER RECEIVED PROTOCOL MESSAGE !",message);
5143
+ // });
5144
5144
 
5145
5145
 
5146
5146
  // Setting up the disctonnect event :
@@ -5201,13 +5201,15 @@ WebsocketImplementation={
5201
5201
 
5202
5202
 
5203
5203
  if(!WebsocketImplementation.useSocketIOImplementation) clientSocketParam.addEventListener("message", doOnMessage);
5204
- else clientSocketParam.on(channelName, doOnMessage);
5204
+ else{
5205
+
5206
+ // DBG
5207
+ clientSocketParam.onAny((event,args) => { console.log(`MAIS PUTAIN : ${event}:`,args); });
5208
+ clientSocketParam.on(channelName,(args) => { console.log(`MAIS OSKOUR : ${event}:`,args); });
5209
+
5210
+ clientSocketParam.on(channelName, doOnMessage);
5211
+ }
5205
5212
 
5206
- // // DBG
5207
- // nodeServerInstance.serverSocket.on("protocol",()=>{
5208
- // // DBG
5209
- // lognow("FUUUUUUUUUUUUUUUUUUUCK");
5210
- // });
5211
5213
 
5212
5214
 
5213
5215
  },
@@ -5305,13 +5307,10 @@ WebsocketImplementation={
5305
5307
 
5306
5308
 
5307
5309
  // We execute the events registration listeners entry points:
5308
- foreach(nodeServerInstance.receptionEntryPoints,(receptionEntryPoint)=>{
5310
+ foreach(nodeServerInstance.receptionEntryPoints,(receptionEntryPoint,i)=>{
5309
5311
 
5310
5312
  // DBG
5311
- console.log("ENTRY POINT !");
5312
-
5313
- // CURRENT 0 ;
5314
- ////
5313
+ console.log("ENTRY POINT ["+i+"] !");
5315
5314
 
5316
5315
  receptionEntryPoint.execute(clientSocket);
5317
5316
  });
@@ -5645,7 +5644,7 @@ WebsocketImplementation={
5645
5644
  receive:(channelName, doOnIncomingMessage, clientsRoomsTag=null)=>{
5646
5645
 
5647
5646
  // DBG
5648
- lognow("!!! SETTING UP RECEIVE for :",channelName);
5647
+ lognow("INFO : (CLIENT-BROWSER) SETTING UP RECEIVE for :",channelName);
5649
5648
 
5650
5649
  const doOnMessage=(message)=>{
5651
5650
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.139",
3
+ "version": "0.0.142",
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)",