peerjs-server
peerjs-server copied to clipboard
Chars in strings being replaced with withespace
I'm having an issue:
When I send data attached to the client peer, say i define a token field like
let peer = new Peer(undefined, {...config, token: "this is a text to be decoded with this + sign in it"})
I can access that data in the server side, but the plus sign is replaced with whitespace.
Aside from this issue, I think there should be some way to send data on client connection, maybe being able to send params on the querystring or something.
I think it has something to do with the way it is transported via http, I'm having a similar issue with other library and I gues it has something to do with the way urls are encoded, but I still think the documentation could improve to explain these cases or the api should allow a way to specify a valid way in the http protocol to transport user data or something.