-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PeerJs Creating Default Connection on load #999
Comments
It looks like it's likely part of the process to determine what the browser supports. Is there a way to make a best guess without making a connection? |
Can you include the code you are using or a minimal reproduction example? |
It's been a while since I've used peerjs due to the other bug (can't send data in order.) Importing the library triggers a connection to a test server. |
I have created a codesandbox to try and recreate this, but had not noticed it happening just by importing. |
Ah sorry, my mistake. You have to create the Peer object. |
This one may be higher priority though (I'm haven't followed the calls to determine why reliable is not being passed): #746 |
I also noticed this behaviour today. Just loading the PeerJS files without any additional code will connect to google and Peerjs servers. |
I'm importing PeerJS from the NPM module and using it with custom stun servers. This appears to work fine.
But when the app loads it makes an initial connection using the default servers before my code ever starts using the library.
How can I disable this?
The text was updated successfully, but these errors were encountered: