aotrautils-srv 0.0.234 → 0.0.237

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 (02/08/2022-02:22:01)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (02/08/2022-02:28:51)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4827,7 +4827,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4827
4827
 
4828
4828
 
4829
4829
 
4830
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (02/08/2022-02:22:01)»*/
4830
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (02/08/2022-02:28:51)»*/
4831
4831
  /*-----------------------------------------------------------------------------*/
4832
4832
 
4833
4833
 
@@ -5059,7 +5059,7 @@ WebsocketImplementation={
5059
5059
  //
5060
5060
  // CONSOLE NODE SERVER/CLIENT
5061
5061
  //
5062
- getStatic:(isNodeContext=true, useSocketIOImplementation=/*DEBUG*/true)=>{
5062
+ getStatic:(isNodeContext=true, useSocketIOImplementation=/*DEBUG*/false)=>{
5063
5063
 
5064
5064
  WebsocketImplementation.isNodeContext=isNodeContext;
5065
5065
  WebsocketImplementation.useSocketIOImplementation=useSocketIOImplementation;
@@ -5156,15 +5156,15 @@ WebsocketImplementation={
5156
5156
  serverSocket=new WebSocket.Server({ "server":listenableServer });
5157
5157
  }else{
5158
5158
 
5159
-
5160
5159
  // NOW : socket.io :
5161
5160
  // Loading socket.io
5162
5161
  // OLD SYNTAX : serverSocket=Socket.listen(listenableServer);
5163
5162
  serverSocket=new Socket.Server(listenableServer);
5164
5163
 
5165
- // TRACE :
5166
- lognow("WARN : CAUTION ! ON TODAY (01/08/2022) socket.io SERVER LIBRARY IS BOGUS AND WON'T WORK IF listenableServer IS A https SERVER !!!");
5167
-
5164
+ if(listenableServer.cert || listenableServer.key){
5165
+ // TRACE :
5166
+ lognow("WARN : CAUTION ! ON TODAY (01/08/2022) socket.io SERVER LIBRARY IS BOGUS AND WON'T WORK (node clients can't connect !!) IF listenableServer IS A https SERVER !!!");
5167
+ }
5168
5168
 
5169
5169
  // Setting up the disctonnect event :
5170
5170
  serverSocket.on("endConnection",()=>{
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.234",
3
+ "version": "0.0.237",
4
4
  "main": "aotrautils-srv.build.js",
5
5
  "description": "A library for vanilla javascript utils (server-side) used in aotra javascript CMS",
6
6
  "author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",