peerjs-server icon indicating copy to clipboard operation
peerjs-server copied to clipboard

Chars in strings being replaced with withespace

Open eko234 opened this issue 2 years ago • 2 comments

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.

eko234 avatar Sep 06 '21 22:09 eko234

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.

eko234 avatar Sep 06 '21 22:09 eko234

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.

eko234 avatar Oct 06 '21 03:10 eko234