more wss stabilizations

This commit is contained in:
2019-04-26 06:40:50 +10:00
parent acdcac3ab3
commit 2724bfe858

View File

@@ -44,7 +44,12 @@ module.exports = {
});
dclient.on('message', (message) => {
ws.send(stringify(message))
wss.clients.forEach(function each(client) {
if (client !== ws && client.readyState === WebSocket.OPEN) {
client.send(stringify(message))
}
}
})
// ws.send('something');
});