aotrautils 0.0.327 → 0.0.329
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 +13 -16
- 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 (04/12/2022-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (04/12/2022-13:55:21)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -4827,7 +4827,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4827
4827
|
|
|
4828
4828
|
|
|
4829
4829
|
|
|
4830
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (04/12/2022-
|
|
4830
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (04/12/2022-13:55:21)»*/
|
|
4831
4831
|
/*-----------------------------------------------------------------------------*/
|
|
4832
4832
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
4833
4833
|
*
|
|
@@ -12949,7 +12949,7 @@ createOritaMicroClient=function(url, port, isNode=false){
|
|
|
12949
12949
|
};
|
|
12950
12950
|
|
|
12951
12951
|
|
|
12952
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (04/12/2022-
|
|
12952
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (04/12/2022-13:55:21)»*/
|
|
12953
12953
|
/*-----------------------------------------------------------------------------*/
|
|
12954
12954
|
|
|
12955
12955
|
|
|
@@ -14177,7 +14177,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14177
14177
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14178
14178
|
|
|
14179
14179
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14180
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (04/12/2022-
|
|
14180
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (04/12/2022-13:55:21)»*/
|
|
14181
14181
|
/*-----------------------------------------------------------------------------*/
|
|
14182
14182
|
|
|
14183
14183
|
|
|
@@ -14542,10 +14542,11 @@ WebsocketImplementation={
|
|
|
14542
14542
|
lognow("(SERVER) Registering receive for «"+channelNameParam+"»...",doOnIncomingMessage);
|
|
14543
14543
|
|
|
14544
14544
|
|
|
14545
|
+
|
|
14545
14546
|
const receptionEntryPoint={
|
|
14546
14547
|
channelName:channelNameParam,
|
|
14547
14548
|
clientsRoomsTag:clientsRoomsTag,
|
|
14548
|
-
execute:(eventOrMessage, clientSocketParam)=>{
|
|
14549
|
+
execute:(eventOrMessage, clientSocketParam, clientId)=>{
|
|
14549
14550
|
|
|
14550
14551
|
// With «ws» library we have no choive than register message events inside a «connection» event !
|
|
14551
14552
|
|
|
@@ -14693,20 +14694,14 @@ WebsocketImplementation={
|
|
|
14693
14694
|
// if(contains(nodeServerInstance.clientsSockets, clientSocket)) return;
|
|
14694
14695
|
// nodeServerInstance.clientsSockets.push(clientSocket);
|
|
14695
14696
|
|
|
14696
|
-
|
|
14697
|
-
|
|
14698
|
-
clientSocket.clientId=getUUID();
|
|
14699
|
-
|
|
14700
|
-
|
|
14701
|
-
// // DBG
|
|
14702
|
-
// console.log("nodeServerInstance.receptionEntryPoints.length:",nodeServerInstance.receptionEntryPoints.length);
|
|
14703
|
-
|
|
14697
|
+
const clientId=getUUID();
|
|
14698
|
+
clientSocket.clientId=clientId;
|
|
14704
14699
|
|
|
14705
14700
|
const doOnMessage=(eventOrMessage)=>{
|
|
14706
14701
|
|
|
14707
14702
|
// We execute the events registration listeners entry points:
|
|
14708
14703
|
foreach(nodeServerInstance.receptionEntryPoints,(receptionEntryPoint,i)=>{
|
|
14709
|
-
receptionEntryPoint.execute(eventOrMessage, clientSocket);
|
|
14704
|
+
receptionEntryPoint.execute(eventOrMessage, clientSocket, clientId);
|
|
14710
14705
|
});
|
|
14711
14706
|
|
|
14712
14707
|
};
|
|
@@ -14731,6 +14726,8 @@ WebsocketImplementation={
|
|
|
14731
14726
|
|
|
14732
14727
|
|
|
14733
14728
|
// On today, this method is named as same for the two implementations :
|
|
14729
|
+
// TRACE
|
|
14730
|
+
lognow("(SERVER) Removing all listeners for client socket «"+clientSocket.clientId+"».");
|
|
14734
14731
|
clientSocket.removeAllListeners();
|
|
14735
14732
|
|
|
14736
14733
|
|
|
@@ -15335,7 +15332,7 @@ launchNodeHTTPServer=function(port, doOnConnect=null, doOnFinalizeServer=null, /
|
|
|
15335
15332
|
}
|
|
15336
15333
|
|
|
15337
15334
|
|
|
15338
|
-
|
|
15335
|
+
initNodeServerInfrastructureWrapper=function(doOnClientConnection=null, doOnFinalizeServer=null, /*OPTIONAL*/portParam, /*OPTIONAL*/certPathParam, /*OPTIONAL*/keyPathParam){
|
|
15339
15336
|
|
|
15340
15337
|
// TRACE
|
|
15341
15338
|
console.log("Server launched.");
|
|
@@ -15505,7 +15502,7 @@ initNodeServer=function(doOnClientConnection=null, doOnFinalizeServer=null, /*OP
|
|
|
15505
15502
|
// const REFRESH_SCREENSHOTS_MILLIS=500;
|
|
15506
15503
|
//
|
|
15507
15504
|
//
|
|
15508
|
-
// const server=
|
|
15505
|
+
// const server=initNodeServerInfrastructureWrapper(
|
|
15509
15506
|
// // On each client connection :
|
|
15510
15507
|
//// (serverParam, clientSocketParam)=>{},
|
|
15511
15508
|
// null,
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.329",
|
|
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)",
|