aotrautils-srv 0.0.314 → 0.0.316
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 (03/12/2022-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (03/12/2022-23:55:18)»*/
|
|
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 (03/12/2022-
|
|
4830
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (03/12/2022-23:55:18)»*/
|
|
4831
4831
|
/*-----------------------------------------------------------------------------*/
|
|
4832
4832
|
|
|
4833
4833
|
|
|
@@ -5652,7 +5652,18 @@ WebsocketImplementation={
|
|
|
5652
5652
|
|
|
5653
5653
|
// DBG
|
|
5654
5654
|
lognow("DEBUG : CLIENT : nodeClientInstance.clientSocket.on(connect)");
|
|
5655
|
+
|
|
5655
5656
|
|
|
5657
|
+
// Node client ping handling :
|
|
5658
|
+
if(WebsocketImplementation.useSocketIOImplementation){
|
|
5659
|
+
nodeClientInstance.receive("protocol",(message)=>{
|
|
5660
|
+
if(message.type!=="ping") return;
|
|
5661
|
+
nodeClientInstance.send("protocol",{type:"pong"});
|
|
5662
|
+
|
|
5663
|
+
// DBG
|
|
5664
|
+
lognow("DEBUG : NODE CLIENT : Pong sent.");
|
|
5665
|
+
});
|
|
5666
|
+
}
|
|
5656
5667
|
|
|
5657
5668
|
|
|
5658
5669
|
},
|
|
@@ -5661,19 +5672,6 @@ WebsocketImplementation={
|
|
|
5661
5672
|
};
|
|
5662
5673
|
|
|
5663
5674
|
|
|
5664
|
-
|
|
5665
|
-
if(WebsocketImplementation.useSocketIOImplementation){
|
|
5666
|
-
nodeClientInstance.receive("protocol",(message)=>{
|
|
5667
|
-
if(message.type!=="ping") return;
|
|
5668
|
-
nodeClientInstance.send("protocol",{type:"pong"});
|
|
5669
|
-
|
|
5670
|
-
// DBG
|
|
5671
|
-
lognow("DEBUG : CLIENT : Pong sent.");
|
|
5672
|
-
});
|
|
5673
|
-
}
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
5675
|
return nodeClientInstance;
|
|
5678
5676
|
},
|
|
5679
5677
|
|
|
@@ -5800,6 +5798,19 @@ WebsocketImplementation={
|
|
|
5800
5798
|
else browserInstance.clientSocket.on("connect",doAllOnConnection);
|
|
5801
5799
|
|
|
5802
5800
|
|
|
5801
|
+
|
|
5802
|
+
// Browser client ping handling :
|
|
5803
|
+
if(WebsocketImplementation.useSocketIOImplementation){
|
|
5804
|
+
browserInstance.receive("protocol",(message)=>{
|
|
5805
|
+
if(message.type!=="ping") return;
|
|
5806
|
+
browserInstance.send("protocol",{type:"pong"});
|
|
5807
|
+
|
|
5808
|
+
// DBG
|
|
5809
|
+
lognow("DEBUG : BROWSER CLIENT : Pong sent.");
|
|
5810
|
+
});
|
|
5811
|
+
}
|
|
5812
|
+
|
|
5813
|
+
|
|
5803
5814
|
},
|
|
5804
5815
|
|
|
5805
5816
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.316",
|
|
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)",
|