aotrautils 0.0.119 → 0.0.122

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 (16/07/2022-15:33:37)»*/
3
+ /*utils COMMONS library associated with aotra version : «1.0.0.000 (16/07/2022-16:00:17)»*/
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 (16/07/2022-15:33:37)»*/
4831
+ /*utils CLIENT library associated with aotra version : «1.0.0.000 (16/07/2022-16:00:17)»*/
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 (16/07/2022-15:33:37)»*/
11681
+ /*utils GEOMETRY library associated with aotra version : «1.0.0.000 (16/07/2022-16:00:17)»*/
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 (16/07/2022-15:33:37)»*/
12887
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (16/07/2022-16:00:17)»*/
12888
12888
  /*-----------------------------------------------------------------------------*/
12889
12889
 
12890
12890
 
@@ -13153,7 +13153,7 @@ WebsocketImplementation={
13153
13153
  },
13154
13154
 
13155
13155
 
13156
- getServer:(listenableServer)=>{
13156
+ getServer:(listenableServer, port)=>{
13157
13157
 
13158
13158
  if(!WebsocketImplementation.isNodeContext){
13159
13159
  // TRACE
@@ -13176,8 +13176,8 @@ WebsocketImplementation={
13176
13176
 
13177
13177
  // NOW : socket.io :
13178
13178
  // Loading socket.io
13179
- serverSocket=new Socket(listenableServer);
13180
13179
  // OLD SYNTAX : serverSocket=Socket.listen(listenableServer);
13180
+ serverSocket=new Socket.Server(listenableServer);
13181
13181
 
13182
13182
  // Setting up the disctonnect event :
13183
13183
  serverSocket.on("endConnection",()=>{
@@ -13185,7 +13185,7 @@ WebsocketImplementation={
13185
13185
  });
13186
13186
 
13187
13187
  // ////
13188
- // serverSocket.listen();
13188
+ serverSocket.listen(port);
13189
13189
 
13190
13190
  }
13191
13191
 
@@ -13488,7 +13488,10 @@ WebsocketImplementation={
13488
13488
  // connectToServer=function (serverURL, port, isSecure, timeout=10000){
13489
13489
  // return Socket.connect(serverURL + ":" + port,{timeout: timeout});
13490
13490
  // }
13491
- clientSocket=Socket.connect(serverURL + ":" + port,{timeout: timeout, secure: isSecure});
13491
+
13492
+ // OLD SYNTAX: clientSocket=Socket.connect(serverURL + ":" + port,{timeout: timeout, secure: isSecure});
13493
+ clientSocket=Socket(serverURL + ":" + port,{timeout: timeout, secure: isSecure});
13494
+
13492
13495
  }
13493
13496
  }
13494
13497
 
@@ -13849,19 +13852,19 @@ launchNodeHTTPServer=function(port, doOnConnect=null, doOnFinalizeServer=null, /
13849
13852
 
13850
13853
  let listenableServer;
13851
13854
  if(sslOptions){
13852
- let httpsServer=https.createServer(sslOptions, handler).listen(port);
13855
+ let httpsServer=https.createServer(sslOptions, handler); // OLD : .listen(port);
13853
13856
  // TRACE
13854
13857
  console.log("INFO : SERVER : HTTPS Server launched and listening on port " + port + "!");
13855
13858
  listenableServer=httpsServer;
13856
13859
  }else{
13857
- let httpServer=http.createServer(handler).listen(port);
13860
+ let httpServer=http.createServer(handler);// OLD : .listen(port);
13858
13861
  // TRACE
13859
13862
  console.log("INFO : SERVER : HTTP Server launched and listening on port " + port + "!");
13860
13863
  listenableServer=httpServer;
13861
13864
  }
13862
13865
 
13863
13866
 
13864
- const server=WebsocketImplementation.getStatic(true, /*DEBUG*/true).getServer(listenableServer);
13867
+ const server=WebsocketImplementation.getStatic(true, /*DEBUG*/true).getServer(listenableServer, port);
13865
13868
 
13866
13869
  // When a client connects, we execute the callback :
13867
13870
  // CAUTION : MUST BE CALLED ONLY ONCE !
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.119",
3
+ "version": "0.0.122",
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)",