You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are correct, this is a big source of confusion, but changing the code simply to correct that would affect all the working code out there. I have found that most of the tutorials, if not all don't actually work. Often due to changes in the code. My suggestion is to improve the manual! I didn't know of this double app.use(....) that you mentioned here, and thanks to you now I do. I solved this by explicitly doing:
I have a suggestion:
Currently the suggestion is to do something like the following:
This actually creates a binding on
/peerjs/peerjs
because inside the ExpressPeerServer middleware it's adding anapp.use(options.path, xyz)
.Alongside that, on the client there isn't double paths without being explicit:
I think it would just be easier to understand if this:
Created a binding on just
/peerjs
. I don't really understand why there's the ability to define an extra path on top.There shouldn't be any automatic adding of paths anywhere. So you know exactly what you're writing is going to be the endpoint
The text was updated successfully, but these errors were encountered: