aotrautils 0.0.449 → 0.0.450
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.
- aotrautils/aotrautils.build.js +10 -6
- aotrautils/package.json +1 -1
aotrautils/aotrautils.build.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (25/01/2023-00:56:08)»*/
|
|
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 (
|
|
4867
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (25/01/2023-00:56:08)»*/
|
|
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 (
|
|
12989
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (25/01/2023-00:56:08)»*/
|
|
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 (
|
|
14217
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (25/01/2023-00:56:08)»*/
|
|
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)=>{
|
|
@@ -14737,16 +14738,18 @@ 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;
|
|
14742
14747
|
|
|
14743
14748
|
const doOnMessage=(eventOrMessage)=>{
|
|
14744
|
-
|
|
14745
14749
|
// We execute the events registration listeners entry points:
|
|
14746
14750
|
foreach(nodeServerInstance.receptionEntryPoints,(receptionEntryPoint,i)=>{
|
|
14747
14751
|
receptionEntryPoint.execute(eventOrMessage, clientSocket, clientId);
|
|
14748
14752
|
});
|
|
14749
|
-
|
|
14750
14753
|
};
|
|
14751
14754
|
|
|
14752
14755
|
if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.addEventListener("message", doOnMessage);
|
|
@@ -14771,6 +14774,7 @@ WebsocketImplementation={
|
|
|
14771
14774
|
// On today, this method is named as same for the two implementations :
|
|
14772
14775
|
// TRACE
|
|
14773
14776
|
lognow("(SERVER) Removing all listeners for client socket «"+clientSocket.clientId+"».");
|
|
14777
|
+
|
|
14774
14778
|
clientSocket.removeAllListeners();
|
|
14775
14779
|
|
|
14776
14780
|
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.450",
|
|
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)",
|