unavailable-id after internet connection lost
See original GitHub issueHey, this is how i reproduce this error:
if i close and re-open internet connection, it throws this error.
PeerJS: WARNING You received a malformed message from undefined of type HTTP-ERROR peer.js:1117
PeerJS: Socket open peer.js:1117
PeerJS: ERROR Aborting. Error: ID `1` is taken peer.js:1117
and i dont use random ids generated from peerserver. a client’s peer id is always same and unique (i am getting it from user’s primary key value from database)
It is ok while i am switchinh between my web sites pages. (i put peer initialization code in my base.js which loads in every page) ,
swtiching between pages is a kind of disconnection from server right? but why does this happen only when internet connection lost?
i handle this error under peer.on('error'), although i write peer.destroy() here, i doesn’t work.
Issue Analytics
- State:
- Created 9 years ago
- Reactions:1
- Comments:33 (6 by maintainers)
Top Results From Across the Web
No Internet Connection? How to Troubleshoot Internet Issues
For Windows 10, click to Start > Settings > Update & Security > Troubleshoot, and then select the troubleshooter for Internet Connections.
Read more >Fix internet connection problems on Android devices
If you can't access the Internet on your Android device, either through an app or a website, try these troubleshooting steps. Signs of...
Read more >How to Fix It When There's No Internet Connection - Lifewire
Reboot your router and modem. The first step in troubleshooting most tech problems, and especially networking hardware issues, is to restart.
Read more >13 Tips to Troubleshoot Your Internet Connection | PCMag
Check the Wi-Fi signal icon in the bottom-right corner of Windows and top-right corner in macOS. Click the icon and make sure you...
Read more >Can't Connect to Internet? How to Troubleshoot - Electric AI
1. Check for Physical Connectivity Issues ... Sometimes internet connection may fail due to simple things like a loose or unplugged network cable,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Anyone found a good solution yet? I’m using hardcoded ID’s to make it easy for people to connect to each other and store local data (about the other peer), so changing ID’s is not the nicest solution for me.
Does PeerJS is recommended for some major projects. As these kind of errors killing the project.