aotrautils-srv 0.0.125 → 0.0.128
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-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1.0.0.000 (16/07/2022-16:04:32)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -4828,7 +4828,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4828
4828
|
|
|
4829
4829
|
|
|
4830
4830
|
|
|
4831
|
-
/*utils SERVER library associated with aotra version : «1.0.0.000 (16/07/2022-
|
|
4831
|
+
/*utils SERVER library associated with aotra version : «1.0.0.000 (16/07/2022-16:04:32)»*/
|
|
4832
4832
|
/*-----------------------------------------------------------------------------*/
|
|
4833
4833
|
|
|
4834
4834
|
|
|
@@ -4879,10 +4879,6 @@ WebSocket=require("ws");
|
|
|
4879
4879
|
|
|
4880
4880
|
|
|
4881
4881
|
|
|
4882
|
-
// DBG
|
|
4883
|
-
console.log("Socket!!!!!!>>>>",Socket);
|
|
4884
|
-
console.log("WebSocket!!!!!!>>>>",WebSocket);
|
|
4885
|
-
|
|
4886
4882
|
|
|
4887
4883
|
// =================================================================================
|
|
4888
4884
|
// NODEJS UTILS
|
|
@@ -5052,10 +5048,8 @@ if(typeof(fs)==="undefined"){
|
|
|
5052
5048
|
|
|
5053
5049
|
// NODE ONLY SERVER / CLIENTS :
|
|
5054
5050
|
WebsocketImplementation={
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
// WebSocket:WebSocket,
|
|
5058
|
-
|
|
5051
|
+
|
|
5052
|
+
|
|
5059
5053
|
isNodeContext:true,
|
|
5060
5054
|
useSocketIOImplementation:false,
|
|
5061
5055
|
useFlatStrings:false,
|
|
@@ -5087,11 +5081,6 @@ WebsocketImplementation={
|
|
|
5087
5081
|
|
|
5088
5082
|
// *********************************************************************************
|
|
5089
5083
|
|
|
5090
|
-
// DBG
|
|
5091
|
-
console.log("11111 Socket:",Socket);
|
|
5092
|
-
console.log("11111 WebSocket:",WebSocket);
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
5084
|
|
|
5096
5085
|
return WebsocketImplementation;
|
|
5097
5086
|
},
|
|
@@ -5113,10 +5102,6 @@ WebsocketImplementation={
|
|
|
5113
5102
|
serverSocket=new WebSocket.Server({ "server":listenableServer });
|
|
5114
5103
|
}else{
|
|
5115
5104
|
|
|
5116
|
-
|
|
5117
|
-
// DBG
|
|
5118
|
-
console.log(">>>>>>>Socket:",Socket);
|
|
5119
|
-
console.log(">>>>>>>WebSocket:",WebSocket);
|
|
5120
5105
|
|
|
5121
5106
|
// NOW : socket.io :
|
|
5122
5107
|
// Loading socket.io
|
|
@@ -5128,8 +5113,6 @@ WebsocketImplementation={
|
|
|
5128
5113
|
serverSocket.disconnect();
|
|
5129
5114
|
});
|
|
5130
5115
|
|
|
5131
|
-
// ////
|
|
5132
|
-
serverSocket.listen();
|
|
5133
5116
|
|
|
5134
5117
|
}
|
|
5135
5118
|
|
|
@@ -5808,7 +5791,7 @@ launchNodeHTTPServer=function(port, doOnConnect=null, doOnFinalizeServer=null, /
|
|
|
5808
5791
|
}
|
|
5809
5792
|
|
|
5810
5793
|
|
|
5811
|
-
const server=WebsocketImplementation.getStatic(true, /*DEBUG*/true).getServer(listenableServer);
|
|
5794
|
+
const server=WebsocketImplementation.getStatic(true, /*DEBUG*/true).getServer(listenableServer, port);
|
|
5812
5795
|
|
|
5813
5796
|
// When a client connects, we execute the callback :
|
|
5814
5797
|
// CAUTION : MUST BE CALLED ONLY ONCE !
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.128",
|
|
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)",
|