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

File transfer not working #39

Open
ricardojlrufino opened this issue Mar 14, 2021 · 6 comments
Open

File transfer not working #39

ricardojlrufino opened this issue Mar 14, 2021 · 6 comments

Comments

@ricardojlrufino
Copy link

image

@vj-abishek
Copy link
Owner

@ricardojlrufino Sorry for the late reply. What is the file type you tried to send?

@vj-abishek
Copy link
Owner

It looks like you are connected only to the voice channel. And not connected to the data channel.

@vj-abishek
Copy link
Owner

Process to make a successful connection:

Peer 1 and peer 2 need to be in online.
And both need to be in same conversation page or chatting to enable file transfering. File transfer enabled automatically. When enabled the blue online dot will turn into purple dot. After that you can send unlimited files. And also if in the same network it works without using internet.

The only issue for now is the connection failure issue. I'm working it and will be resolved soon.
And also looking for a better solution for connection to establish. And make file transfering easy.

@ricardojlrufino
Copy link
Author

yes, i send a file from my phone to PC and it works ...

@vj-abishek vj-abishek pinned this issue Apr 11, 2021
@vj-abishek vj-abishek changed the title Error sending files (hosted version) File transfer not working Apr 11, 2021
@klauss194
Copy link

@vj-abishek Have you found a way for better conenction failure ? I'm curious what troubles did you encounter and how can I help to solve them.

@vj-abishek
Copy link
Owner

Why the connection is failing?

  • There can be multiple issues, everything is related to exchange of signalling data. The sender initiates the connection but the reciever is not ready yet etc. There should be a retry mechanism

What if the receiver is not available?

  • Need to have a fallback method. If both the clients are available then the peer-to-peer data transfer mechanism can be used. If it is not available, need to have a fallback method such as uploading to a central server. Which makes the app more reliable.

What are the other solutions other than using simple-peer?

  • Webtorrent API is a streaming torrent client for Node.js and the web. Of course, it uses simple-peer under the hood. However, the connection between two or more clients is handled by the web torrent itself. So it will be much more efficient and reliable.

Useful links:

https://instant.io/ - A demo of webtorrent-based file sharing
https://wormhole.app/ - Simple, private file sharing
https://wormhole.app/security - Explains how the app is working step by step
https://github.com/SocketDev/wormhole-crypto - Encryption client used for encrypting files.

@klauss194 Feel free to ask if u got any other questions.

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

3 participants