aotrautils-srv 0.0.130 → 0.0.131

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-16:41:40)»*/
3
+ /*utils COMMONS library associated with aotra version : «1.0.0.000 (16/07/2022-16:48:44)»*/
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-16:41:40)»*/
4831
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (16/07/2022-16:48:44)»*/
4832
4832
  /*-----------------------------------------------------------------------------*/
4833
4833
 
4834
4834
 
@@ -5319,7 +5319,10 @@ WebsocketImplementation={
5319
5319
 
5320
5320
  clientSocket.isAlive=false;
5321
5321
  try{
5322
- clientSocket.ping();
5322
+
5323
+ if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.ping();
5324
+ else clientSocket.emit("ping");
5325
+
5323
5326
  }catch(error){
5324
5327
  lognow("ERROR : A problem occurred when tried to ping client socket : ",error);
5325
5328
  // We effectively end the client connection to this server :
@@ -5338,9 +5341,16 @@ WebsocketImplementation={
5338
5341
 
5339
5342
 
5340
5343
  }, nodeServerInstance.clientTimeoutMillis);
5341
- clientSocket.on("pong",()=>{
5342
- clientSocket.isAlive=true;
5343
- });
5344
+
5345
+ if(!WebsocketImplementation.useSocketIOImplementation){
5346
+ clientSocket.on("pong",()=>{
5347
+ clientSocket.isAlive=true;
5348
+ });
5349
+ }else{
5350
+ clientSocket.on("ping",()=>{
5351
+ clientSocket.isAlive=true;
5352
+ });
5353
+ }
5344
5354
 
5345
5355
 
5346
5356
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.130",
3
+ "version": "0.0.131",
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)",