mirror of
https://github.com/litruv/DAdmin.git
synced 2026-12-02 03:15:58 +11:00
more wss stabilizations
This commit is contained in:
1 parent
acdcac3ab3
commit
2724bfe858
1 file changed
+6
-1
+6
-1
@@ -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');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user