aotrautils 0.0.133 → 0.0.136
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 +33 -15
- 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.0.0.000 (
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1.0.0.000 (17/07/2022-02:15:18)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -4828,7 +4828,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4828
4828
|
|
|
4829
4829
|
|
|
4830
4830
|
|
|
4831
|
-
/*utils CLIENT library associated with aotra version : «1.0.0.000 (
|
|
4831
|
+
/*utils CLIENT library associated with aotra version : «1.0.0.000 (17/07/2022-02:15:18)»*/
|
|
4832
4832
|
/*-----------------------------------------------------------------------------*/
|
|
4833
4833
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
4834
4834
|
*
|
|
@@ -11678,7 +11678,7 @@ createFusrodaClient=function(doOnClientReady, doOnDataReception, urlParam=null,
|
|
|
11678
11678
|
|
|
11679
11679
|
|
|
11680
11680
|
|
|
11681
|
-
/*utils GEOMETRY library associated with aotra version : «1.0.0.000 (
|
|
11681
|
+
/*utils GEOMETRY library associated with aotra version : «1.0.0.000 (17/07/2022-02:15:18)»*/
|
|
11682
11682
|
/*-----------------------------------------------------------------------------*/
|
|
11683
11683
|
|
|
11684
11684
|
|
|
@@ -12884,7 +12884,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
12884
12884
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
12885
12885
|
|
|
12886
12886
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
12887
|
-
/*utils SERVER library associated with aotra version : «1.0.0.000 (
|
|
12887
|
+
/*utils SERVER library associated with aotra version : «1.0.0.000 (17/07/2022-02:15:18)»*/
|
|
12888
12888
|
/*-----------------------------------------------------------------------------*/
|
|
12889
12889
|
|
|
12890
12890
|
|
|
@@ -13191,6 +13191,14 @@ WebsocketImplementation={
|
|
|
13191
13191
|
// OLD SYNTAX : serverSocket=Socket.listen(listenableServer);
|
|
13192
13192
|
serverSocket=new Socket.Server(listenableServer);
|
|
13193
13193
|
|
|
13194
|
+
|
|
13195
|
+
// // DBG
|
|
13196
|
+
// serverSocket.on("protocol",(message)=>{
|
|
13197
|
+
// // DBG
|
|
13198
|
+
// lognow("SERVER RECEIVED PROTOCOL MESSAGE !",message);
|
|
13199
|
+
// });
|
|
13200
|
+
|
|
13201
|
+
|
|
13194
13202
|
// Setting up the disctonnect event :
|
|
13195
13203
|
serverSocket.on("endConnection",()=>{
|
|
13196
13204
|
serverSocket.disconnect();
|
|
@@ -13243,22 +13251,28 @@ WebsocketImplementation={
|
|
|
13243
13251
|
};
|
|
13244
13252
|
|
|
13245
13253
|
|
|
13254
|
+
// CURRENT :
|
|
13255
|
+
lognow(">>>> WebsocketImplementation.useSocketIOImplementation:",WebsocketImplementation.useSocketIOImplementation);
|
|
13246
13256
|
|
|
13257
|
+
|
|
13247
13258
|
|
|
13248
13259
|
if(!WebsocketImplementation.useSocketIOImplementation) clientSocketParam.addEventListener("message", doOnMessage);
|
|
13249
|
-
else
|
|
13250
|
-
|
|
13251
|
-
|
|
13252
|
-
|
|
13253
|
-
// DBG
|
|
13254
|
-
nodeServerInstance.serverSocket.on("protocol",()=>{
|
|
13260
|
+
else{
|
|
13255
13261
|
|
|
13256
13262
|
// DBG
|
|
13257
|
-
|
|
13263
|
+
clientSocketParam.onAny((event) => {
|
|
13264
|
+
console.log(`MAIS PUTAIN : ${event}`);
|
|
13265
|
+
});
|
|
13258
13266
|
|
|
13259
|
-
|
|
13267
|
+
clientSocketParam.on(channelName, doOnMessage);
|
|
13268
|
+
}
|
|
13269
|
+
|
|
13270
|
+
// // DBG
|
|
13271
|
+
// nodeServerInstance.serverSocket.on("protocol",()=>{
|
|
13272
|
+
// // DBG
|
|
13273
|
+
// lognow("FUUUUUUUUUUUUUUUUUUUCK");
|
|
13274
|
+
// });
|
|
13260
13275
|
|
|
13261
|
-
|
|
13262
13276
|
|
|
13263
13277
|
},
|
|
13264
13278
|
};
|
|
@@ -13360,8 +13374,12 @@ WebsocketImplementation={
|
|
|
13360
13374
|
// DBG
|
|
13361
13375
|
console.log("ENTRY POINT !");
|
|
13362
13376
|
|
|
13377
|
+
// CURRENT 0 ;
|
|
13378
|
+
////
|
|
13379
|
+
|
|
13363
13380
|
receptionEntryPoint.execute(clientSocket);
|
|
13364
13381
|
});
|
|
13382
|
+
|
|
13365
13383
|
|
|
13366
13384
|
|
|
13367
13385
|
doOnConnection(nodeServerInstance, clientSocket);
|
|
@@ -13691,7 +13709,7 @@ WebsocketImplementation={
|
|
|
13691
13709
|
receive:(channelName, doOnIncomingMessage, clientsRoomsTag=null)=>{
|
|
13692
13710
|
|
|
13693
13711
|
// DBG
|
|
13694
|
-
lognow("
|
|
13712
|
+
lognow("INFO : (CLIENT-BROWSER) SETTING UP RECEIVE for :",channelName);
|
|
13695
13713
|
|
|
13696
13714
|
const doOnMessage=(message)=>{
|
|
13697
13715
|
|
|
@@ -13895,7 +13913,7 @@ launchNodeHTTPServer=function(port, doOnConnect=null, doOnFinalizeServer=null, /
|
|
|
13895
13913
|
}
|
|
13896
13914
|
|
|
13897
13915
|
|
|
13898
|
-
const server=WebsocketImplementation.getStatic(true).getServer(listenableServer
|
|
13916
|
+
const server=WebsocketImplementation.getStatic(true).getServer(listenableServer);
|
|
13899
13917
|
|
|
13900
13918
|
// When a client connects, we execute the callback :
|
|
13901
13919
|
// CAUTION : MUST BE CALLED ONLY ONCE !
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.136",
|
|
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)",
|