server: allow spaces and accentuated characters in client id
This commit is contained in:
parent
25f7b3e4aa
commit
6fa7e9ebed
2 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue