aotrautils-srv 0.0.220 → 0.0.221

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 (22/07/2022-00:49:55)»*/
3
+ /*utils COMMONS library associated with aotra version : «1.0.0.000 (22/07/2022-00:54:19)»*/
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 (22/07/2022-00:49:55)»*/
4831
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (22/07/2022-00:54:19)»*/
4832
4832
  /*-----------------------------------------------------------------------------*/
4833
4833
 
4834
4834
 
@@ -5535,7 +5535,7 @@ WebsocketImplementation={
5535
5535
 
5536
5536
  send:(channelName, data, clientsRoomsTag=null)=>{
5537
5537
 
5538
- let clientSocket=nodeClientInstance.clientSocket;
5538
+ const clientSocket=nodeClientInstance.clientSocket;
5539
5539
 
5540
5540
 
5541
5541
  // // DBG
@@ -5587,7 +5587,10 @@ WebsocketImplementation={
5587
5587
  if(nodeClientInstance.hasConnectEventFired) return;
5588
5588
  nodeClientInstance.hasConnectEventFired=true;
5589
5589
 
5590
- let clientSocket=nodeClientInstance.clientSocket;
5590
+ const clientSocket=nodeClientInstance.clientSocket;
5591
+
5592
+ // DBG
5593
+ clientSocket.clientId=getUUID();
5591
5594
 
5592
5595
  doOnConnection(nodeClientInstance, clientSocket);
5593
5596
 
@@ -5597,11 +5600,6 @@ WebsocketImplementation={
5597
5600
  });
5598
5601
 
5599
5602
 
5600
- ////
5601
- // TODO : FIXME
5602
-
5603
-
5604
-
5605
5603
  };
5606
5604
 
5607
5605
  if(!WebsocketImplementation.useSocketIOImplementation) nodeClientInstance.clientSocket.addEventListener("open",doAllOnConnection);
@@ -5701,7 +5699,7 @@ WebsocketImplementation={
5701
5699
 
5702
5700
  send:(channelName, data, clientsRoomsTag=null)=>{
5703
5701
 
5704
- let clientSocket=browserInstance.clientSocket;
5702
+ const clientSocket=browserInstance.clientSocket;
5705
5703
 
5706
5704
 
5707
5705
  // // DBG
@@ -5750,10 +5748,13 @@ WebsocketImplementation={
5750
5748
  if(browserInstance.hasConnectEventFired) return;
5751
5749
  browserInstance.hasConnectEventFired=true;
5752
5750
 
5753
- doOnConnection(browserInstance, clientSocket);
5751
+ const clientSocket=browserInstance.clientSocket;
5754
5752
 
5755
5753
  // DBG
5756
5754
  clientSocket.clientId=getUUID();
5755
+
5756
+ doOnConnection(browserInstance, clientSocket);
5757
+
5757
5758
 
5758
5759
  };
5759
5760
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.220",
3
+ "version": "0.0.221",
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)",