aotrautils-srv 0.0.72 → 0.0.75
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 SERVER library associated with aotra version : «1.0.0.000 (13/07/2022-02:
|
|
3
|
+
/*utils SERVER library associated with aotra version : «1.0.0.000 (13/07/2022-02:22:17)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -229,15 +229,16 @@ WebsocketImplementation={
|
|
|
229
229
|
// https://stackoverflow.com/questions/6599470/node-js-socket-io-with-ssl
|
|
230
230
|
// https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
|
|
231
231
|
|
|
232
|
-
|
|
232
|
+
const globalContext=(WebsocketImplementation.isNodeContext?global:window);
|
|
233
|
+
if(typeof(globalContext.socketIO)==="undefined"){
|
|
233
234
|
// TRACE
|
|
234
235
|
lognow("«socket.io» SERVER library not called yet, calling it now.");
|
|
235
|
-
socketIO=require("socket.io");
|
|
236
|
+
globalContext.socketIO=require("socket.io");
|
|
236
237
|
// TRACE
|
|
237
|
-
lognow("«socket.io» SERVER library called.
|
|
238
|
+
lognow("«socket.io» SERVER library called:",globalContext.socketIO);
|
|
238
239
|
|
|
239
240
|
}
|
|
240
|
-
if(typeof(socketIO)==="undefined"){
|
|
241
|
+
if(typeof(globalContext.socketIO)==="undefined"){
|
|
241
242
|
// Exception
|
|
242
243
|
throw "ERROR : «socket.io» SERVER library not found. Cannot launch nodejs server. Aborting.";
|
|
243
244
|
}
|
|
@@ -1317,7 +1318,7 @@ function getListManager(config){
|
|
|
1317
1318
|
|
|
1318
1319
|
|
|
1319
1320
|
|
|
1320
|
-
/*utils COMMONS library associated with aotra version : «1.0.0.000 (13/07/2022-02:
|
|
1321
|
+
/*utils COMMONS library associated with aotra version : «1.0.0.000 (13/07/2022-02:22:17)»*/
|
|
1321
1322
|
/*-----------------------------------------------------------------------------*/
|
|
1322
1323
|
|
|
1323
1324
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.75",
|
|
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)",
|