aotrautils-srv 0.0.138 → 0.0.141
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-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1.0.0.000 (17/07/2022-02:23:48)»*/
|
|
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-
|
|
4831
|
+
/*utils SERVER library associated with aotra version : «1.0.0.000 (17/07/2022-02:23:48)»*/
|
|
4832
4832
|
/*-----------------------------------------------------------------------------*/
|
|
4833
4833
|
|
|
4834
4834
|
|
|
@@ -5135,6 +5135,14 @@ WebsocketImplementation={
|
|
|
5135
5135
|
// OLD SYNTAX : serverSocket=Socket.listen(listenableServer);
|
|
5136
5136
|
serverSocket=new Socket.Server(listenableServer);
|
|
5137
5137
|
|
|
5138
|
+
|
|
5139
|
+
// // DBG
|
|
5140
|
+
// serverSocket.on("protocol",(message)=>{
|
|
5141
|
+
// // DBG
|
|
5142
|
+
// lognow("SERVER RECEIVED PROTOCOL MESSAGE !",message);
|
|
5143
|
+
// });
|
|
5144
|
+
|
|
5145
|
+
|
|
5138
5146
|
// Setting up the disctonnect event :
|
|
5139
5147
|
serverSocket.on("endConnection",()=>{
|
|
5140
5148
|
serverSocket.disconnect();
|
|
@@ -5193,7 +5201,15 @@ WebsocketImplementation={
|
|
|
5193
5201
|
|
|
5194
5202
|
|
|
5195
5203
|
if(!WebsocketImplementation.useSocketIOImplementation) clientSocketParam.addEventListener("message", doOnMessage);
|
|
5196
|
-
else
|
|
5204
|
+
else{
|
|
5205
|
+
|
|
5206
|
+
// DBG
|
|
5207
|
+
clientSocketParam.onAny((event,args) => {
|
|
5208
|
+
console.log(`MAIS PUTAIN : ${event}:`,args);
|
|
5209
|
+
});
|
|
5210
|
+
|
|
5211
|
+
clientSocketParam.on(channelName, doOnMessage);
|
|
5212
|
+
}
|
|
5197
5213
|
|
|
5198
5214
|
// // DBG
|
|
5199
5215
|
// nodeServerInstance.serverSocket.on("protocol",()=>{
|
|
@@ -5307,6 +5323,7 @@ WebsocketImplementation={
|
|
|
5307
5323
|
|
|
5308
5324
|
receptionEntryPoint.execute(clientSocket);
|
|
5309
5325
|
});
|
|
5326
|
+
|
|
5310
5327
|
|
|
5311
5328
|
|
|
5312
5329
|
doOnConnection(nodeServerInstance, clientSocket);
|
|
@@ -5636,7 +5653,7 @@ WebsocketImplementation={
|
|
|
5636
5653
|
receive:(channelName, doOnIncomingMessage, clientsRoomsTag=null)=>{
|
|
5637
5654
|
|
|
5638
5655
|
// DBG
|
|
5639
|
-
lognow("
|
|
5656
|
+
lognow("INFO : (CLIENT-BROWSER) SETTING UP RECEIVE for :",channelName);
|
|
5640
5657
|
|
|
5641
5658
|
const doOnMessage=(message)=>{
|
|
5642
5659
|
|
|
@@ -5840,7 +5857,7 @@ launchNodeHTTPServer=function(port, doOnConnect=null, doOnFinalizeServer=null, /
|
|
|
5840
5857
|
}
|
|
5841
5858
|
|
|
5842
5859
|
|
|
5843
|
-
const server=WebsocketImplementation.getStatic(true).getServer(listenableServer
|
|
5860
|
+
const server=WebsocketImplementation.getStatic(true).getServer(listenableServer);
|
|
5844
5861
|
|
|
5845
5862
|
// When a client connects, we execute the callback :
|
|
5846
5863
|
// 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.141",
|
|
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)",
|