aotrautils-srv 0.0.230 → 0.0.233
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 (30/07/2022-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (30/07/2022-14:17:12)»*/
|
|
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 (30/07/2022-
|
|
4830
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (30/07/2022-14:17:12)»*/
|
|
4831
4831
|
/*-----------------------------------------------------------------------------*/
|
|
4832
4832
|
|
|
4833
4833
|
|
|
@@ -5496,13 +5496,13 @@ WebsocketImplementation={
|
|
|
5496
5496
|
|
|
5497
5497
|
// OLD SYNTAX: clientSocket=Socket.connect(serverURL + ":" + port,{timeout: timeout, secure: isSecure});
|
|
5498
5498
|
// NO : clientSocket=new Socket.Client(serverURL + ":" + port,{timeout: timeout, secure: isSecure});
|
|
5499
|
-
clientSocket=io(serverURL + ":" + port,{timeout: timeout, secure: isSecure});
|
|
5500
|
-
|
|
5499
|
+
clientSocket=io(serverURL + ":" + port,{timeout: timeout, secure: isSecure, autoConnect:true});
|
|
5500
|
+
// DOES NOT WORK : clientSocket.connect();
|
|
5501
5501
|
}
|
|
5502
5502
|
}
|
|
5503
5503
|
|
|
5504
5504
|
// DBG
|
|
5505
|
-
lognow("DEBUG : CLIENT : clientSocket created:"
|
|
5505
|
+
lognow("DEBUG : CLIENT : clientSocket created:"+clientSocket.connected);
|
|
5506
5506
|
|
|
5507
5507
|
|
|
5508
5508
|
// NODE CLIENT INSTANCE :
|
|
@@ -5600,6 +5600,9 @@ WebsocketImplementation={
|
|
|
5600
5600
|
|
|
5601
5601
|
onConnectionToServer:(doOnConnection)=>{
|
|
5602
5602
|
|
|
5603
|
+
// DBG
|
|
5604
|
+
lognow("DEBUG : CLIENT : setting up onConnectionToServer.");
|
|
5605
|
+
|
|
5603
5606
|
const doAllOnConnection=()=>{
|
|
5604
5607
|
|
|
5605
5608
|
// To avoid triggering this event several times, depending on the implementation :
|
|
@@ -5608,6 +5611,7 @@ WebsocketImplementation={
|
|
|
5608
5611
|
|
|
5609
5612
|
const clientSocket=nodeClientInstance.clientSocket;
|
|
5610
5613
|
|
|
5614
|
+
|
|
5611
5615
|
// DBG
|
|
5612
5616
|
lognow("DEBUG : CLIENT : doOnConnection !");
|
|
5613
5617
|
|
|
@@ -5621,11 +5625,17 @@ WebsocketImplementation={
|
|
|
5621
5625
|
|
|
5622
5626
|
|
|
5623
5627
|
};
|
|
5628
|
+
|
|
5624
5629
|
|
|
5625
5630
|
if(!WebsocketImplementation.useSocketIOImplementation) nodeClientInstance.clientSocket.addEventListener("open",doAllOnConnection);
|
|
5626
5631
|
else nodeClientInstance.clientSocket.on("connect",doAllOnConnection);
|
|
5627
5632
|
|
|
5628
5633
|
|
|
5634
|
+
// DBG
|
|
5635
|
+
lognow("DEBUG : CLIENT : nodeClientInstance.clientSocket.on(connect)");
|
|
5636
|
+
|
|
5637
|
+
|
|
5638
|
+
|
|
5629
5639
|
},
|
|
5630
5640
|
|
|
5631
5641
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.233",
|
|
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)",
|