aotrautils-srv 0.0.229 → 0.0.232
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-13:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (30/07/2022-14:13:06)»*/
|
|
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-13:
|
|
4830
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (30/07/2022-14:13:06)»*/
|
|
4831
4831
|
/*-----------------------------------------------------------------------------*/
|
|
4832
4832
|
|
|
4833
4833
|
|
|
@@ -5497,9 +5497,13 @@ WebsocketImplementation={
|
|
|
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
5499
|
clientSocket=io(serverURL + ":" + port,{timeout: timeout, secure: isSecure});
|
|
5500
|
-
|
|
5500
|
+
clientSocket.connect();
|
|
5501
5501
|
}
|
|
5502
5502
|
}
|
|
5503
|
+
|
|
5504
|
+
// DBG
|
|
5505
|
+
lognow("DEBUG : CLIENT : clientSocket created:",clientSocket);
|
|
5506
|
+
|
|
5503
5507
|
|
|
5504
5508
|
// NODE CLIENT INSTANCE :
|
|
5505
5509
|
const nodeClientInstance={
|
|
@@ -5596,6 +5600,9 @@ WebsocketImplementation={
|
|
|
5596
5600
|
|
|
5597
5601
|
onConnectionToServer:(doOnConnection)=>{
|
|
5598
5602
|
|
|
5603
|
+
// DBG
|
|
5604
|
+
lognow("DEBUG : CLIENT : setting up onConnectionToServer.");
|
|
5605
|
+
|
|
5599
5606
|
const doAllOnConnection=()=>{
|
|
5600
5607
|
|
|
5601
5608
|
// To avoid triggering this event several times, depending on the implementation :
|
|
@@ -5604,6 +5611,11 @@ WebsocketImplementation={
|
|
|
5604
5611
|
|
|
5605
5612
|
const clientSocket=nodeClientInstance.clientSocket;
|
|
5606
5613
|
|
|
5614
|
+
|
|
5615
|
+
// DBG
|
|
5616
|
+
lognow("DEBUG : CLIENT : doOnConnection !");
|
|
5617
|
+
|
|
5618
|
+
|
|
5607
5619
|
doOnConnection(nodeClientInstance, clientSocket);
|
|
5608
5620
|
|
|
5609
5621
|
// We execute the listeners entry points registration :
|
|
@@ -5613,11 +5625,17 @@ WebsocketImplementation={
|
|
|
5613
5625
|
|
|
5614
5626
|
|
|
5615
5627
|
};
|
|
5628
|
+
|
|
5616
5629
|
|
|
5617
5630
|
if(!WebsocketImplementation.useSocketIOImplementation) nodeClientInstance.clientSocket.addEventListener("open",doAllOnConnection);
|
|
5618
5631
|
else nodeClientInstance.clientSocket.on("connect",doAllOnConnection);
|
|
5619
5632
|
|
|
5620
5633
|
|
|
5634
|
+
// DBG
|
|
5635
|
+
lognow("DEBUG : CLIENT : nodeClientInstance.clientSocket.on(connect)");
|
|
5636
|
+
|
|
5637
|
+
|
|
5638
|
+
|
|
5621
5639
|
},
|
|
5622
5640
|
|
|
5623
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.232",
|
|
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)",
|