decode channel names on the server

This commit is contained in:
Mystikfluu
2022-07-31 12:55:51 +02:00
parent 38f3284307
commit 5414a92561
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ module.exports = {
}
let messagestr = JSON.stringify(message)
server.wss.clients.forEach(function(ws) {
if(ws.channel == req.body.receiver) {
if(ws.channel == decodeURIComponent(req.body.receiver)) {
ws.send(messagestr)
}
});