move ws client logging to debug
This commit is contained in:
parent
13a351e7a8
commit
4fabb9c7a3
@ -212,9 +212,9 @@ export const setup = function (router, con, server) {
|
|||||||
data: post_obj
|
data: post_obj
|
||||||
};
|
};
|
||||||
let messagestr = JSON.stringify(message);
|
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) {
|
server.wss.clients.forEach(function(ws) {
|
||||||
console.log(5,ws);
|
//console.log(5,ws); /* DEBUG: Log websocket clients */
|
||||||
ws.send(messagestr);
|
ws.send(messagestr);
|
||||||
});
|
});
|
||||||
res.json({ "success": "successfully posted message" });
|
res.json({ "success": "successfully posted message" });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user