server: allow spaces and accentuated characters in client id

This commit is contained in:
jean-emmanuel 2022-02-27 22:38:39 +01:00
parent 25f7b3e4aa
commit 6fa7e9ebed
2 changed files with 4 additions and 1 deletions

View file

@ -31,6 +31,8 @@ class Ipc extends EventEmitter {
if (!id) return
id = decodeURI(id)
if (!this.clients[id]) {
var client = new Client(socket, id, req.connection.remoteAddress)