Open UTing1119 opened 4 months ago
hi
I had the same issue.
When a new socket connects before the previous socket is removed during reconnect()
, the OPEN
message was not sent.
I submitted a PR to the PeerJS server repo. https://github.com/peers/peerjs-server/pull/462
PR fix by @hissinger appears to work for me. I was just dealing with this exact issue and wondering why nothing gets called after reconnect. I noticed this when I was switching between wifi networks and checking how my app reacts to it.
thanks a lot!! hope they will accept the PR soon
Please, check for existing issues to avoid duplicates.
What happened?
hello, I'm using Vue 3 with PeerJS.
I'm creating a application and using free PeerJS server to share screen or camera. while testing, I try to cut one PC's WiFi down and reopen the WiFi after disconnect event is fired. But reconnect only works sometimes. after I call reconnect, nothing happens. No event, no connect, no error.
the status which PeerJS offer, like
open
、destory
will stayfalse
. Onlydisconnect
will change to false after I call reconnect. If I try to recoonect it again, the result wont change.after I open the debug of server, it shows the steps and we can see it's not get the message:
it should be like this
here is my code
does anyone know about this?
How can we reproduce the issue?
No response
What do you expected to happen?
if can't reconnect, it will fire event to try again, and return evey error or fire event.
Environment setup
Is this a regression?
No response
Anything else?
No response