Skip to content
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

Improve P2P stability #9

Open
PixelsCommander opened this issue Aug 2, 2016 · 2 comments
Open

Improve P2P stability #9

PixelsCommander opened this issue Aug 2, 2016 · 2 comments

Comments

@PixelsCommander
Copy link
Owner

PixelsCommander commented Aug 2, 2016

Currently there is a big chance that establishing connection with P2P will fail because of network cnfiguration.

The issue is to research ways of how stability could be improved. Just getting a 100% stable connection on desktop + android phone from another network (wifi / 3g) is a step forward.

You may be interested in disabling forceDIrect which guarantees direct HTTP delivery if there is a timeout on P2P. Try to increase a timeout to 20 000 https://github.com/PixelsCommander/ViralJS/blob/master/src/client-scripts-templates/thin-client-template.js#L13

One more idea of possible improvement is WebRTC layer which is Socket.IO P2P for now. It could be improved, upgraded or changed.

@10thfloor
Copy link

What about using https://github.com/feross/webtorrent ?

@PixelsCommander
Copy link
Owner Author

WebTorrent is an amazing piece of engineering however made on other purpose and have longer time before actual transfer and larger footprint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants