aotrautils-srv 0.0.136 → 0.0.139

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 (16/07/2022-17:33:57)»*/
3
+ /*utils COMMONS library associated with aotra version : «1.0.0.000 (17/07/2022-01:46:57)»*/
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 (16/07/2022-17:33:57)»*/
4831
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (17/07/2022-01:46:57)»*/
4832
4832
  /*-----------------------------------------------------------------------------*/
4833
4833
 
4834
4834
 
@@ -5135,6 +5135,14 @@ WebsocketImplementation={
5135
5135
  // OLD SYNTAX : serverSocket=Socket.listen(listenableServer);
5136
5136
  serverSocket=new Socket.Server(listenableServer);
5137
5137
 
5138
+
5139
+ // DBG
5140
+ serverSocket.on("protocol",(message)=>{
5141
+ // DBG
5142
+ lognow("SERVER RECEIVED PROTOCOL MESSAGE !",message);
5143
+ });
5144
+
5145
+
5138
5146
  // Setting up the disctonnect event :
5139
5147
  serverSocket.on("endConnection",()=>{
5140
5148
  serverSocket.disconnect();
@@ -5187,22 +5195,20 @@ WebsocketImplementation={
5187
5195
  };
5188
5196
 
5189
5197
 
5198
+ // CURRENT :
5199
+ lognow(">>>> WebsocketImplementation.useSocketIOImplementation:",WebsocketImplementation.useSocketIOImplementation);
5190
5200
 
5201
+
5191
5202
 
5192
5203
  if(!WebsocketImplementation.useSocketIOImplementation) clientSocketParam.addEventListener("message", doOnMessage);
5193
5204
  else clientSocketParam.on(channelName, doOnMessage);
5194
5205
 
5206
+ // // DBG
5207
+ // nodeServerInstance.serverSocket.on("protocol",()=>{
5208
+ // // DBG
5209
+ // lognow("FUUUUUUUUUUUUUUUUUUUCK");
5210
+ // });
5195
5211
 
5196
-
5197
- // DBG
5198
- nodeServerInstance.serverSocket.on("protocol",()=>{
5199
-
5200
- // DBG
5201
- lognow("FUUUUUUUUUUUUUUUUUUUCK");
5202
-
5203
- });
5204
-
5205
-
5206
5212
 
5207
5213
  },
5208
5214
  };
@@ -5302,10 +5308,14 @@ WebsocketImplementation={
5302
5308
  foreach(nodeServerInstance.receptionEntryPoints,(receptionEntryPoint)=>{
5303
5309
 
5304
5310
  // DBG
5305
- console.log("ENTRY POINT !",clientSocket);
5311
+ console.log("ENTRY POINT !");
5312
+
5313
+ // CURRENT 0 ;
5314
+ ////
5306
5315
 
5307
5316
  receptionEntryPoint.execute(clientSocket);
5308
5317
  });
5318
+
5309
5319
 
5310
5320
 
5311
5321
  doOnConnection(nodeServerInstance, clientSocket);
@@ -5839,7 +5849,7 @@ launchNodeHTTPServer=function(port, doOnConnect=null, doOnFinalizeServer=null, /
5839
5849
  }
5840
5850
 
5841
5851
 
5842
- const server=WebsocketImplementation.getStatic(true).getServer(listenableServer, port);
5852
+ const server=WebsocketImplementation.getStatic(true).getServer(listenableServer);
5843
5853
 
5844
5854
  // When a client connects, we execute the callback :
5845
5855
  // CAUTION : MUST BE CALLED ONLY ONCE !
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.136",
3
+ "version": "0.0.139",
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)",