-
Notifications
You must be signed in to change notification settings - Fork 14
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
Slow discovery of peers on localhost #7
Comments
Could you try testing version 2.0.1 to see if it's better? |
Hey @RangerMauve, sorry, are you sure was published? https://www.npmjs.com/package/hyperswarm-web I cannot see it in versions |
@tinchoz49 Whoops, I must have forgotten to publish after tagging. Try 2.0.2 instead. 😅 |
Updated to 2.0.2,still having the same problem |
Weird. Lets debug this a bit further.
|
|
Hey @pasqui23, it could be helpful a demo repository with your failing test, we can try to find the issue from that point. |
It's a private repo,now you should be able to open it. |
thank you |
https://github.com/pasqui23/.hswm-bug/blob/master/src/index.js#L29 there is a typo in the bootstrap url, it should be: |
I'm using it without TLS,wouldn't break oon |
I didn't write You wrote |
The risks of programming at midnight ... |
Fixed typo,but discovery is still slow |
Still important to me and I don't know how to start debugging hyperswarm.Any tips,@tinchoz49 @RangerMauve ? |
I don't have time at the moment to look too deeply into this due to work, but you could try setting up breakpoints inside the simple peer code to see if you're actually getting peers through it. |
It looks like the |
which browser are you using? |
@tinchoz49 still the same.I'm debuuging using VSCode's Debugger for chrome extension |
I cannot reproduce your error, in chrome I get a connection in less of 1 second: #7 (comment) |
@RangerMauve where do you suggest I put breakpoints? My selection of breakpoints interrupts right after continuing from the previous breakpoint. |
I suspect it's something with [https://en.wikipedia.org/wiki/Internet_in_Italy](Italian Internet) as other people in Italy could replicate the problem. |
@RangerMauve I did set up a breakpoint on Peer._onIceCandidate and it did fire up but still no discovery |
You could try setting up custom TURN servers for your app with a service like XirSys to improve browser-to-browser connectivity. Else you might want to find a consultant that can figure out why WebRTC isn't working for you. 😅 |
I have an application that emits
peer
events very slowly.As in,if I open 2 tabs in the same browser,the second tabs discover the first after a few minutes,but the fist discover the second after a few hours.
The text was updated successfully, but these errors were encountered: