aotrautils-srv 0.0.172 → 0.0.175
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 (17/07/2022-14:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1.0.0.000 (17/07/2022-14:56:51)»*/
|
|
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 (17/07/2022-14:
|
|
4831
|
+
/*utils SERVER library associated with aotra version : «1.0.0.000 (17/07/2022-14:56:51)»*/
|
|
4832
4832
|
/*-----------------------------------------------------------------------------*/
|
|
4833
4833
|
|
|
4834
4834
|
|
|
@@ -5061,7 +5061,7 @@ WebsocketImplementation={
|
|
|
5061
5061
|
//
|
|
5062
5062
|
// CONSOLE NODE SERVER/CLIENT
|
|
5063
5063
|
//
|
|
5064
|
-
getStatic:(isNodeContext=true, useSocketIOImplementation=/*DEBUG*/
|
|
5064
|
+
getStatic:(isNodeContext=true, useSocketIOImplementation=/*DEBUG*/true)=>{
|
|
5065
5065
|
|
|
5066
5066
|
WebsocketImplementation.isNodeContext=isNodeContext;
|
|
5067
5067
|
WebsocketImplementation.useSocketIOImplementation=useSocketIOImplementation;
|
|
@@ -5119,10 +5119,6 @@ WebsocketImplementation={
|
|
|
5119
5119
|
|
|
5120
5120
|
let dataResult=eventOrMessage;
|
|
5121
5121
|
|
|
5122
|
-
////
|
|
5123
|
-
// DBG
|
|
5124
|
-
lognow(" SERVER RECEIVED 1:",eventOrMessage);
|
|
5125
|
-
|
|
5126
5122
|
try{
|
|
5127
5123
|
dataResult=(WebsocketImplementation.useFlatStrings || isString(eventOrMessage)?JSON.parse(eventOrMessage):eventOrMessage);
|
|
5128
5124
|
}catch(error1){
|
|
@@ -5158,13 +5154,6 @@ WebsocketImplementation={
|
|
|
5158
5154
|
serverSocket=new Socket.Server(listenableServer);
|
|
5159
5155
|
|
|
5160
5156
|
|
|
5161
|
-
// // DBG
|
|
5162
|
-
// serverSocket.on("protocol",(message)=>{
|
|
5163
|
-
// // DBG
|
|
5164
|
-
// lognow("SERVER RECEIVED PROTOCOL MESSAGE !",message);
|
|
5165
|
-
// });
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
5157
|
// Setting up the disctonnect event :
|
|
5169
5158
|
serverSocket.on("endConnection",()=>{
|
|
5170
5159
|
serverSocket.disconnect();
|
|
@@ -5202,10 +5191,6 @@ WebsocketImplementation={
|
|
|
5202
5191
|
|
|
5203
5192
|
|
|
5204
5193
|
const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
|
|
5205
|
-
////
|
|
5206
|
-
// DBG
|
|
5207
|
-
lognow(" SERVER RECEIVED 2:",dataWrapped);
|
|
5208
|
-
|
|
5209
5194
|
|
|
5210
5195
|
|
|
5211
5196
|
// Channel information is stored in exchanged data :
|
|
@@ -5225,8 +5210,6 @@ WebsocketImplementation={
|
|
|
5225
5210
|
};
|
|
5226
5211
|
|
|
5227
5212
|
|
|
5228
|
-
// CURRENT :
|
|
5229
|
-
lognow(">>>> WebsocketImplementation.useSocketIOImplementation:",WebsocketImplementation.useSocketIOImplementation);
|
|
5230
5213
|
|
|
5231
5214
|
|
|
5232
5215
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.175",
|
|
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)",
|