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
@@ -1063,7 +1063,7 @@ wss.on("connection", function connection(ws) {
ws.on("message", function incoming(message) {
message = JSON.parse(message)
if(message.id == "switchChannel") {
ws.channel = message.data
ws.channel = decodeURIComponent(message.data)
}
})
})