!! !。?WARNING!!!!
YOUUUUUUUU re being watched.
Do not loapp.post('/chess/setboard', (req, res) => {
board = req.body;
const from = req.body.from;
const result = { succeed: true };
wsClients['chess'].forEach((client) => {
// console.log(client)
client.send(JSON.stringify({
from,
content: req.body.content,
message: req.body.message
}));
});
res.json(result);
});.