move ws client logging to debug

This commit is contained in:
Mystikfluu 2022-09-23 17:44:23 +02:00
parent 13a351e7a8
commit 4fabb9c7a3

View File

@ -212,9 +212,9 @@ export const setup = function (router, con, server) {
data: post_obj
};
let messagestr = JSON.stringify(message);
console.log(5,server.wss.clients);
//console.log(5,server.wss.clients); /* DEBUG: Log websocket clients */
server.wss.clients.forEach(function(ws) {
console.log(5,ws);
//console.log(5,ws); /* DEBUG: Log websocket clients */
ws.send(messagestr);
});
res.json({ "success": "successfully posted message" });