aotrautils 0.0.449 → 0.0.451

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 (23/01/2023-23:15:44)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (25/01/2023-02:11:27)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4864,7 +4864,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4864
4864
 
4865
4865
 
4866
4866
 
4867
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (23/01/2023-23:15:44)»*/
4867
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (25/01/2023-02:11:27)»*/
4868
4868
  /*-----------------------------------------------------------------------------*/
4869
4869
  /* ## Utility global methods in a browser (htmljs) client environment.
4870
4870
  *
@@ -12986,7 +12986,7 @@ createOritaMicroClient=function(url, port, isNode=false){
12986
12986
  };
12987
12987
 
12988
12988
 
12989
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (23/01/2023-23:15:44)»*/
12989
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (25/01/2023-02:11:27)»*/
12990
12990
  /*-----------------------------------------------------------------------------*/
12991
12991
 
12992
12992
 
@@ -14214,7 +14214,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14214
14214
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14215
14215
 
14216
14216
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14217
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (23/01/2023-23:15:44)»*/
14217
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (25/01/2023-02:11:27)»*/
14218
14218
  /*-----------------------------------------------------------------------------*/
14219
14219
 
14220
14220
 
@@ -14579,6 +14579,7 @@ WebsocketImplementation={
14579
14579
  clientPingIntervalMillis:5000,
14580
14580
  // clientsSockets:[],
14581
14581
  serverSocket:serverSocket,
14582
+
14582
14583
  receptionEntryPoints:[],
14583
14584
 
14584
14585
  receive:(channelNameParam, doOnIncomingMessage, clientsRoomsTag=null)=>{
@@ -14591,7 +14592,7 @@ WebsocketImplementation={
14591
14592
  const receptionEntryPoint={
14592
14593
  channelName:channelNameParam,
14593
14594
  clientsRoomsTag:clientsRoomsTag,
14594
- execute:(eventOrMessage, clientSocketParam, clientId)=>{
14595
+ execute:(eventOrMessage, clientSocketParam)=>{
14595
14596
 
14596
14597
  // With «ws» library we have no choive than register message events inside a «connection» event !
14597
14598
 
@@ -14737,16 +14738,20 @@ WebsocketImplementation={
14737
14738
  // if(contains(nodeServerInstance.clientsSockets, clientSocket)) return;
14738
14739
  // nodeServerInstance.clientsSockets.push(clientSocket);
14739
14740
 
14741
+
14742
+ // CURRENT :
14743
+ // NOT GOOD :
14744
+
14740
14745
  const clientId=getUUID();
14741
14746
  clientSocket.clientId=clientId;
14747
+
14748
+
14742
14749
 
14743
14750
  const doOnMessage=(eventOrMessage)=>{
14744
-
14745
14751
  // We execute the events registration listeners entry points:
14746
14752
  foreach(nodeServerInstance.receptionEntryPoints,(receptionEntryPoint,i)=>{
14747
- receptionEntryPoint.execute(eventOrMessage, clientSocket, clientId);
14753
+ receptionEntryPoint.execute(eventOrMessage, clientSocket);
14748
14754
  });
14749
-
14750
14755
  };
14751
14756
 
14752
14757
  if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.addEventListener("message", doOnMessage);
@@ -14771,6 +14776,7 @@ WebsocketImplementation={
14771
14776
  // On today, this method is named as same for the two implementations :
14772
14777
  // TRACE
14773
14778
  lognow("(SERVER) Removing all listeners for client socket «"+clientSocket.clientId+"».");
14779
+
14774
14780
  clientSocket.removeAllListeners();
14775
14781
 
14776
14782
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.449",
3
+ "version": "0.0.451",
4
4
  "main": "aotrautils.build.js",
5
5
  "description": "A library for vanilla javascript utils (client-side) used in aotra javascript CMS",
6
6
  "author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",